Trait Props
Direct Known Users
MvcCore\ControllerIndirect Known Users
MvcCore\Ext\Auths\Basics\Controller, MvcCore\Ext\Auths\Basics\SignInForm, MvcCore\Ext\Auths\Basics\SignOutForm, MvcCore\Ext\Form
protected static
string
|
$staticPath
Path to all static files - css, js, images and fonts. |
#
'/static'
|
protected static
string
|
$tmpPath
Path to temporary directory with generated css and js files. |
#
'/Var/Tmp'
|
protected
|
$application
Reference to |
|
protected
|
$environment
Environment object to detect and manage environment name. |
|
protected
|
$request
Request object - parsed URI, query params, app paths... |
|
protected
|
$response
Response object - storage for response headers and rendered body. |
|
protected
|
$router
Application router object - reference storage for application router to crate URL addresses. |
|
protected
string
|
$controllerName
Requested controller name - |
#
''
|
protected
string
|
$actionName
Requested action name - |
#
''
|
protected
boolean
|
$ajax
Boolean about AJAX request.
|
#
FALSE
|
protected
|
$view
Class store object for view properties.
Before |
#
NULL
|
protected
integer
|
$renderMode
Rendering mode switch to render views in two ways:
|
#
\MvcCore\IView::RENDER_WITH_OB_FROM_ACTION_TO_LAYOUT
|
protected
string
|
$layout
Layout name to render html wrapper around rendered action view. |
#
'layout'
|
protected
string|null
|
$viewScriptsPath
This property is to customize sub-controllers template path. |
#
NULL
|
protected
boolean
|
$viewEnabled
If |
#
TRUE
|
protected
|
$user
User model instance. Template property. |
#
NULL
|
protected
boolean
|
$autoStartSession
If |
#
TRUE
|
protected
boolean
|
$autoInitProperties
If |
#
FALSE
|
protected
integer
|
$dispatchState
Controller lifecycle state: - 0 => Controller has been created. - 1 => Controller has been initialized. - 2 => Controller has been pre-dispatched. - 3 => controller has been action executed. - 4 => Controller has been rendered. - 5 => Controller has been redirected. |
#
\MvcCore\IController::DISPATCH_STATE_CREATED
|
protected
|
$parentController
Parent controller instance if any. |
#
NULL
|
protected
|
$childControllers
Registered sub-controllers instances. |
#
[]
|
protected static
|
$allControllers
All registered controllers instances. |
#
[]
|
private static
string
|
$_assetsMimeTypes
All asset mime types possibly called through |
#
[
'js' => 'text/javascript',
'css' => 'text/css',
'ico' => 'image/x-icon',
'gif' => 'image/gif',
'png' => 'image/png',
'jpg' => 'image/jpg',
'jpeg' => 'image/jpeg',
'bmp' => 'image/bmp',
'svg' => 'image/svg+xml',
'eot' => 'application/vnd.ms-fontobject',
'ttf' => 'font/truetype',
'otf' => 'font/opentype',
'woff' => 'application/x-font-woff',
]
|