function admin_method(){
        $this->layout = "my_layout";
        ....
}

-----Original Message-----
From: [email protected] [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 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 for /admin sections? thank you.



__________ NOD32 2711 (20071207) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to