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 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

Reply via email to