Hi, I want users to have an option to select layout. More specifically, each user will have an option to select one of the layout from three different layout choices. However, I am not sure how I can globally change the layout based on user's selection. I read previous post on changing layout for cake_admin. the general idea was to use beforeRender function to check if the user is cake_admin and if so change the layout. However, in this case, a single user has different options for the layout.
I can think of one option where I register layout choice in session variable and use beforeRender to switch to particular layout. However, there is another problem in my case. I want user to able to set layout using url. For instance: if the url is http://localhost/mysite/forum/view - then the global layout is set to default if the url is http://localhost/mysite/forum/view/newlayout - then the global layout is set to newlayout I want to be able to pass layout information with any url...so I am not sure how can I write a generic function to check if the url has layout information and if so register the session variable and use that particular layout for current session. Regards, bingo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
