Свойство | Тип | Описание | |
---|---|---|---|
$catchAll | the configuration specifying a controller action which should handle all user requests. This is mainly used when the application is in maintenance mode and needs to handle all incoming requests via a single action. The configuration is an array whose first element specifies the route of the action. The rest of the array elements (key-value pairs) specify the parameters to be bound to the action. For example, php [ 'offline/notice', 'param1' => 'value1', 'param2' => 'value2', ] Defaults to null, meaning catch-all is not used. | ||
$controller | the currently active controller instance | ||
$defaultRoute | the default route of this application. Defaults to 'site'. |
Метод | Описание | |
---|---|---|
coreComponents ( ) | ||
getErrorHandler ( ) : |
Returns the error handler component. | |
getHomeUrl ( ) : string | ||
getRequest ( ) : |
Returns the request component. | |
getResponse ( ) : |
Returns the response component. | |
getSession ( ) : yii\web\Session | Returns the session component. | |
getUser ( ) : |
Returns the user component. | |
handleRequest ( |
Handles the specified request. | |
setHomeUrl ( string $value ) |
Метод | Описание | |
---|---|---|
bootstrap ( ) |
public getErrorHandler ( ) : |
||
Результат | the error handler application component. |
public getRequest ( ) : |
||
Результат | the request component. |
public getResponse ( ) : |
||
Результат | the response component. |
public getSession ( ) : yii\web\Session | ||
Результат | yii\web\Session | the session component. |
public getUser ( ) : |
||
Результат | the user component. |
public handleRequest ( |
||
$request | the request to be handled | |
Результат | the resulting response |
public $catchAll |