Class Application
Class Application
- Slim\Slim
- Slimore\Mvc\Application
Methods summary
public
|
|
public
|
|
public
|
|
protected
|
|
public
mixed
|
#
dbConnection( array $configs = null, string $name = 'default', boolean $enableQueryLog = true )
Configure the database and boot Eloquent |
public
|
|
public
|
#
controller( string $controller, callable $callback, string $namespace = '' )
Route controller handle |
public
|
|
protected
|
|
protected
|
|
public
number
|
|
public
number
|
Properties summary
public
string
|
$version
|
#
'0.1.0'
|
protected
array
|
$defaults
$defaults |
#
[
'path' => '',
'baseURL' => '',
'timezone' => 'Asia/Shanghai',
'templates.path' => '../app/views',
'cookies.encrypt' => true,
'cookies.secret_key' => 'vadsfas',
'modules' => [],
'defaultModule' => '',
'disabledModules' => '',
'template.suffix' => '.php',
'x-framework-header' => true,
'mvcDirs' => [
'controller' => 'controllers',
'model' => 'models',
'view' => 'views'
],
'autoloads' => [],
'defaultAutoloads' => [
'../app/controllers',
'../app/models',
],
'db' => []
]
|
public
string
|
$path
|
|
public
string
|
$baseURL
|
|
public
mixed
|
$db
|
|
public
number
|
$startTime
|
|
public
string
|
$moduleName
|
#
''
|
public
string
|
$controllerName
|
|
public
string
|
$actionName
|
|
protected
array
|
$routeInfo
|