How to send model to layout file from controller in YII2 -


i not able send model parameters on layout file via controller action. how that?

add proprety controller

public $model; 

in controller action

$this->model = $model 

from layout can access model by

$this->context->model 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -