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
Post a Comment