-- jlevy <[EMAIL PROTECTED]> wrote
(on Thursday, 31 January 2008, 08:24 AM -0800):
> I init a Zend_Layout in my bootstrapper...
>  - Zend_Layout::startMVC(array('layoutPath' => $_approot.'/views/layouts'));
> 
> ...
> based on some other magick, I set the view script to an alternate scripts
> directory...
> 
>  - Zend_Layout::getMvcInstance()->getView()->setScriptPath($_alternate); //
> where alternate = 'views/layouts/lolcatz/'
> 
> I noticed that this has had no effect, as my
> /views/scripts/index/index.phtml script is still being rendered, when I
> expected /layouts/lolcats/index/index.phtml to be rendered ...
> 
> I am missing something ... clearly ... 

Internally, Zend_Layout stores the layoutPath, and then only applies it
immediately prior to rendering the layout script. This is to ensure that
it's found on the first path tried in the View object.

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to