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 parameters to be bound to the action

return array

The valid parameters that the action can run with.

throws yii\web\BadRequestHttpException

if there are missing or invalid parameters.

doc_Yii
2016-10-30 17:14:45
Comments
Leave a Comment

Please login to continue.