Google News
logo
CakePHP - Interview Questions
How to set Layout in the Controller?
You can set Layout in the Controller by using the following command :
var $layout = 'layout_name';  
To overwrite for a specific action use below command :
$this->layout ="layout_name";
Advertisement