web\Controller bindActionParams()

bindActionParams() public method Binds the parameters to the action. This method is invoked by yii\base\Action when it begins to run with the given parameters. This method will check the parameter names that the action requires and return the provided parameters according to the requirement. If there is any missing parameter, an exception will be thrown. public array bindActionParams ( $action, $params )$action yii\base\Action The action to be bound with parameters $params array The pa

web\Controller goHome()

goHome() public method Redirects the browser to the home page. You can use this method in an action by returning the yii\web\Response directly: // stop executing this action and redirect to home page return $this->goHome(); public yii\web\Response goHome ( )return yii\web\Response The current response object

web\Controller $enableCsrfValidation

$enableCsrfValidation public property Whether to enable CSRF validation for the actions in this controller. CSRF validation is enabled only when both this property and yii\web\Request::$enableCsrfValidation are true. public boolean $enableCsrfValidation = true

web\ConflictHttpException __construct()

__construct() public method Constructor. public void __construct ( $message = null, $code = 0, Exception $previous = null )$message string Error message $code integer Error code $previous Exception The previous exception used for the exception chaining.

web\Controller $actionParams

$actionParams public property The parameters bound to the current action. public array $actionParams = []

web\CompositeUrlRule init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

web\CompositeUrlRule createUrl()

createUrl() public method Creates a URL according to the given route and parameters. public string|boolean createUrl ( $manager, $route, $params )$manager yii\web\UrlManager The URL manager $route string The route. It should not have slashes at the beginning or the end. $params array The parameters return string|boolean The created URL, or false if this rule cannot be used for creating this URL.

web\CompositeUrlRule parseRequest()

parseRequest() public method Parses the given request and returns the corresponding route and parameters. public array|boolean parseRequest ( $manager, $request )$manager yii\web\UrlManager The URL manager $request yii\web\Request The request component return array|boolean The parsing result. The route and the parameters are returned as an array. If false, it means this rule cannot be used to parse this path info.

web\CacheSession writeSession()

writeSession() public method Session write handler. Do not call this method directly. public boolean writeSession ( $id, $data )$id string Session ID $data string Session data return boolean Whether session write is successful

web\CacheSession readSession()

readSession() public method Session read handler. Do not call this method directly. public string readSession ( $id )$id string Session ID return string The session data