Re: Different layout for function (not controller)

2007-12-09 Thread Dave J
Or how about utilizing the beforeRender in the main AppController? function beforeRender() { if (!empty($this->params['admin'])) { $this->layout = 'admin_layout'; } } saves you having to set the layout for each admin method in all the sub-controllers On Dec 9, 8:02 pm, "websta

RE: Different layout for function (not controller)

2007-12-09 Thread websta*
function admin_method(){ $this->layout = "my_layout"; } -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dilbert Sent: Monday, 10 December 2007 7:34 a.m. To: Cake PHP Subject: Different layout for function (not controller) I