sounds like a component would be helpful here it can store the current layout in the session but also automatically set the layout depending on some conditions etc
On 17 Okt., 06:39, Nitin Hittalamani <[email protected]> wrote: > Yup...You need to mention if you are using other lay out instead of default. > This is what i used to do. > > > > > > > > > > On Mon, Oct 17, 2011 at 3:37 AM, Meroe Kush <[email protected]> wrote: > > Hello all!**** > > > ** ** > > > I am looking for advice on a way to pass the currently used layout into the > > next accessed controller. Should I just use a session and set it and > > reference it in each of the methods or is there a way to look at the layout > > from the previous controller and pass to the requested controller?**** > > > ** ** > > > For example:**** > > > ** ** > > > /users -> var $layout = ‘admin’**** > > > /contacts -> should use the admin layout since it was called from the users > > controller which uses the admin layout**** > > > ** ** > > > /events -> var $layout = ‘default’**** > > > /contacts -> should use the default layout since it was called from the > > events controller which uses the default layout**** > > > ** ** > > > ** ** > > > Make sense? Advice?**** > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://groups.google.com/group/cake-php > > -- > Thanks and Regards, > > Nitin Hittalamani. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
