console\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 first bind the parameters with the options available to the action. It then validates the given arguments.

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\console\Exception

if there are unknown options or missing arguments

doc_Yii
2016-10-30 16:54:42
Comments
Leave a Comment

Please login to continue.