[Solar-talk] _layout_dir

Jeff Surgeson solar at 3hex.com
Mon Jun 26 02:53:13 PDT 2006


Hi Paul

Thanks for the new release its great! even though it breaks all my 
code :-) :-)

Just a quick question, you have removed the code in Page.php that used to add 
the _layout_dir to the template path array, namely

$view->addTemplatePath($this->_layout_dir);

There does not appear to be an equivalent bit of code in new _render() 
function in Page.php, is this design or dare I say flaw, or is there a reason 
for this.

I have always been able to overide default page $_layout_dir and $_layout 
variables in my app using 

$this->_layout_dir =  '/Vendor/App/Layout/anotherdir' and this would be added 
to template path array.

I see that the template path array by default contains

Vendor/App/AppName/Layout/
Vendor/App/Layout/

So I can just move my layouts to Vendor/App/AppName/Layout/ if there is a 
reason for this, it just seems like you should be able to set this variable 
within the app as you can with most of the others, $_layout etc.

-- 
Jeff Surgeson


More information about the solar-talk mailing list