\startmvc\coreApp

Summary

Methods
Properties
Constants
__construct()
run()
errorHandler()
exceptionHandler()
$conf
No constants found
No protected methods found
No protected properties found
N/A
loadFunction()
getRoute()
startApp()
No private properties found
N/A

Properties

$conf

$conf

Methods

__construct()

__construct() : mixed

Returns

mixed —

run()

run() : mixed

Returns

mixed —

errorHandler()

errorHandler(mixed  $level, mixed  $message, mixed  $file, mixed  $line) : mixed

自定义错误处理触发错误

Parameters

mixed $level
mixed $message
mixed $file
mixed $line

Returns

mixed —

exceptionHandler()

exceptionHandler(mixed  $exception) : mixed

异常错误处理

Parameters

mixed $exception

Returns

mixed —

loadFunction()

loadFunction(mixed  $dirPath = ROOT_PATH . 'function' . DS . '*.php') : mixed

加载自定义函数

Parameters

mixed $dirPath

Returns

mixed —

getRoute()

getRoute() : mixed

获取路由

Returns

mixed —

startApp()

startApp(mixed  $module, mixed  $controller, mixed  $action, mixed  $argv) : mixed

配置控制器的路径

Parameters

mixed $module
mixed $controller
mixed $action
mixed $argv

Returns

mixed —