[Solar-svn] Revision 2559

pmjones at solarphp.com pmjones at solarphp.com
Wed Jun 27 16:58:19 CDT 2007


Solar_Controller_Page: [CHG] Method _setLayoutTemplates() is now called from _render(), not _renderLayout(), in the interest of making _renderLayout() easier to override (no need to call _setLayoutTemplates() in extended methods).

Thanks for the suggestion, Rodrigo.

fixes #79


Modified: trunk/Solar/Controller/Page.php
===================================================================
--- trunk/Solar/Controller/Page.php	2007-06-27 21:48:00 UTC (rev 2558)
+++ trunk/Solar/Controller/Page.php	2007-06-27 21:58:18 UTC (rev 2559)
@@ -462,6 +462,7 @@
         }
         
         if ($this->_layout) {
+            $this->_setLayoutTemplates();
             $this->_renderLayout();
         }
         
@@ -517,9 +518,6 @@
      */
     protected function _renderLayout()
     {
-        // reset the view object to use layout templates.
-        $this->_setLayoutTemplates();
-        
         // assign the previous output
         $this->_view_object->assign($this->_layout_var, $this->_response->content);
         




More information about the Solar-svn mailing list