[Solar-talk] Layouts and modifying the view stack

Andreas Ravnestad andreas.ravnestad at gmail.com
Fri Nov 17 12:16:52 PST 2006


Hi!

I read about and applied this hack 
http://lists.solarphp.com/pipermail/solar-talk/2006-August/001468.html

And it works fine. However though, it only works if I call 
$this->template() on the common templates from a view. If I call 
$this->template() on the common templates from a *layout*, Solar gives 
an error (see attached error message at the end of this mail).

How can I make this work from layouts?

-Andreas

Fatal error: Uncaught exception 'Solar_View_Exception_TemplateNotFound' 
class::code 'Solar_View::ERR_TEMPLATE_NOT_FOUND' with message 
'ERR_TEMPLATE_NOT_FOUND' information array ( 'name' => 
'common_footer.php', 'path' => array ( 0 => 
'Account\\App\\Settings\\Layout\\', 1 => 'Account\\App\\Layout\\', 2 => 
'Solar\\App\\Layout\\', ), ) Stack trace: #0 C:\PHP\PEAR\Solar.php(880): 
Solar::factory('Solar_View_Exce...', Array) #1 
C:\PHP\PEAR\Solar\Base.php(184): Solar::exception('Solar_View', 
'ERR_TEMPLATE_NO...', 'ERR_TEMPLATE_NO...', Array) #2 
C:\PHP\PEAR\Solar\View.php(509): 
Solar_Base->_exception('ERR_TEMPLATE_NO...', Array) #3 
C:\htdocs\idbsys\Account\App\Layout\account.php(10): 
Solar_View->template('common_footer.p...') #4 
C:\PHP\PEAR\Solar\View.php(488): require('C:\htdocs\idbsy...') #5 
C:\PHP\PEAR\Solar\Controller\Page.php(350): 
Solar_View->fetch('account.php') #6 
C:\PHP\PEAR\Solar\Controller\Page.php(294): 
Solar_Controller_Page->_render() #7 
C:\PHP\PEAR\Solar\Controller\Front.php(17 in C:\PHP\PEAR\Solar.php on 
line 589


More information about the solar-talk mailing list