Re: Different layout for function (not controller)

2007-12-09 Thread Dave J
gt; Of Dilbert > Sent: Monday, 10 December 2007 7:34 a.m. > To: Cake PHP > Subject: Different layout for function (not controller) > > I know it's possible to use a different layout for every > controller...But can I use a different layout for every function in > the contro

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 co

Different layout for function (not controller)

2007-12-09 Thread Dilbert
I know it's possible to use a different layout for every controller...But can I use a different layout for every function in the controller? For example if I have an article controller with add/ delete/edit/view function for normal users and admin_functions for moderator can I use different layout