I want to send a parameter from controller to layout (i.e. main.php). But I am not able to get the param in main.php
I tried:
Controller Code:
I had a same problem, I resolve that in:
In my Controller par exemple, I do that
$this->view->params['typeUser'] = 'Internaut';
in my View
$this->params['typeUser'] or echo $this->params['typeUser']