[Solar-talk] $this->layout / $this->_layout
Rodrigo Moraes
rodrigo.moraes at gmail.com
Tue Oct 16 16:19:31 CDT 2007
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. :)
-- rodrigo
More information about the Solar-talk
mailing list