[Solar-talk] $this->layout / $this->_layout

Jeff Surgeson solar at 3hex.com
Tue Oct 16 16:30:57 CDT 2007


On Tuesday 16 October 2007 23:19:31 Rodrigo Moraes wrote:
> On 10/16/07, Jeff Surgeson wrote:
> > My question is why would we need this public, and when would we need to
> > use it? layouts work fine without it.
>
> Hey, Jeff.
> take a look at the _head.php layout: $this->layout is used to load a
> different css file depending on the layout:
>
>     ->addStyleBase("Solar/styles/cssfw/layout-{$this->layout}.css")
>
> it is a nice trick, btw. :)

Sure is, missed it as I was playing with ___layouts like you use and had 
already modified _head

Cheers!!


-- 
...........::::::...........
Jeff Surgeson / South Africa


More information about the Solar-talk mailing list