You could do so in beforeFilter() by previously checking which controller is being executed. Or better yet re-define beforeFilter() at the controller level, set the layout, and make sure you call parent::beforeFilter()
-MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de Mark Steudel Enviado el: Jueves, 08 de Febrero de 2007 10:58 a.m. Para: [email protected] Asunto: How to specify layout once So I have admin functions in my controller. I can change the layout used by doing: $this->layout = 'admin'; But instead of adding that line in for each of my admin actions I was wondering if there was a way to do it just once. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
