프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 handleRequest ( |
||
$request | the request to be handled | |
리턴 | the resulting response |
public $catchAll |