passing variables from controller to default layout

2 messages Options
Embed this post
Permalink
exo_duz

passing variables from controller to default layout

Reply Threaded More More options
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 More options
Print post
Permalink
I wonder if using $this->set('varname', 'value') within the functions is the right way to go?