PHP 클래스 yii\web\Application

부터: 2.0
저자: Qiang Xue ([email protected])
상속: extends yii\base\Application
파일 보기 프로젝트 열기: yiisoft/yii2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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 ( ) : ErrorHandler Returns the error handler component.
getHomeUrl ( ) : string
getRequest ( ) : Request Returns the request component.
getResponse ( ) : Response Returns the response component.
getSession ( ) : yii\web\Session Returns the session component.
getUser ( ) : User Returns the user component.
handleRequest ( Request $request ) : Response Handles the specified request.
setHomeUrl ( string $value )

보호된 메소드들

메소드 설명
bootstrap ( )

메소드 상세

bootstrap() 보호된 메소드

protected bootstrap ( )

coreComponents() 공개 메소드

public coreComponents ( )

getErrorHandler() 공개 메소드

Returns the error handler component.
public getErrorHandler ( ) : ErrorHandler
리턴 ErrorHandler the error handler application component.

getHomeUrl() 공개 메소드

public getHomeUrl ( ) : string
리턴 string the homepage URL

getRequest() 공개 메소드

Returns the request component.
public getRequest ( ) : Request
리턴 Request the request component.

getResponse() 공개 메소드

Returns the response component.
public getResponse ( ) : Response
리턴 Response the response component.

getSession() 공개 메소드

Returns the session component.
public getSession ( ) : yii\web\Session
리턴 yii\web\Session the session component.

getUser() 공개 메소드

Returns the user component.
public getUser ( ) : User
리턴 User the user component.

handleRequest() 공개 메소드

Handles the specified request.
public handleRequest ( Request $request ) : Response
$request Request the request to be handled
리턴 Response the resulting response

setHomeUrl() 공개 메소드

public setHomeUrl ( string $value )
$value string the homepage URL

프로퍼티 상세

$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.
public $catchAll

$controller 공개적으로 프로퍼티

the currently active controller instance
public $controller

$defaultRoute 공개적으로 프로퍼티

the default route of this application. Defaults to 'site'.
public $defaultRoute