[Solar-svn] Revision 2648

pmjones at solarphp.com pmjones at solarphp.com
Sun Jul 29 11:35:47 CDT 2007


Branch: Solar_View: method setHelperClass(), when resetting the class stack, now allows for extended Solar_View classes (i.e., takes the parents into account).


Modified: branches/orm/Solar/View.php
===================================================================
--- branches/orm/Solar/View.php	2007-07-29 16:33:01 UTC (rev 2647)
+++ branches/orm/Solar/View.php	2007-07-29 16:35:46 UTC (rev 2648)
@@ -299,13 +299,15 @@
      */
     public function setHelperClass($list = null)
     {
-        $this->_helper_class->set('Solar_View_Helper');
+        $parents = array_reverse(Solar::parents($this, true));
+        array_shift($parents); // drops Solar_Base
+        $this->_helper_class->set($parents);
         $this->_helper_class->add($list);
     }
     
     /**
      * 
-     * Add to the helper directory path stack.
+     * Add to the helper class stack.
      * 
      * @param string|array $list The classes to add to the stack.
      * 




More information about the Solar-svn mailing list