CakePHP Projects
passing variables from controller to default layout
2 messages
Options
Subscribe via email
Pin topic
Unpin topic
Move post to...
Embed this post
Permalink
exo_duz
passing variables from controller to default layout
Reply
Threaded
More
Ban this user
Unban this user
Edit post
Delete post permanently
Remove topic from forum
Email this post to...
Move topic to...
Print post
Permalink
Hi,
My question is, is there a way to pass variables to be used within the default layout like $this->pageTitle.
I ask this is because I want to change the <body> class and id to set up different CSS or images for a certain page.
Thanks.
exo_duz
Re: passing variables from controller to default layout
Reply
Threaded
More
Ban this user
Unban this user
Edit post
Delete post permanently
Remove post from topic
Email this post to...
Move post to...
Print post
Permalink
I wonder if using $this->set('varname', 'value') within the functions is the right way to go?
Free Embeddable Forum
Powered by
Nabble
Help