Interview Questions

How to set layout in the controller?

CakePHP Interview Questions and Answers


(Continued from previous question...)

How to set layout in the controller?

var $layout = ‘layout_name’;
to overwrite for a specific action use below code in that action $this->layout =”layout_name”;

(Continued on next question...)

Other Interview Questions