[Solar-talk] helper stack

Jeff Surgeson solar at 3hex.com
Mon Aug 21 05:02:59 PDT 2006


Rodrigo, thanks just what I needed, however
> $view = $this->_getView();
> $view->addHelperClass($stk);

I have added it to my setup() in my app and if I do a dump of $view it shows 
that the new path has been added to the stack (Buuldog_App_Helper)

["_helper_class:protected"] => object(Solar_Class_Stack)#16 (2) {
    ["_stack:protected"] => array(6) {
      [0] => string(19) "Bulldog_App_Helper_"
      [1] => string(31) "Watchmanager_App_Browse_Helper_"
      [2] => string(24) "Watchmanager_App_Helper_"
      [3] => string(25) "Watchmanager_View_Helper_"
      [4] => string(18) "Solar_View_Helper_"
      [5] => string(18) "Solar_View_Helper_"
    }
    ["_config:protected"] => array(0) {}

However it still not searching the helper path from the view level, as per the 
error message

Fatal error: Uncaught exception 'Solar_Exception' 
class::code 'Solar_Class_Stack::ERR_CLASS_NOT_FOUND' with 
message 'ERR_CLASS_NOT_FOUND' information array ('name' 
=> 'GetFileSize', 'stack' => array ( 
0 => 'Watchmanager_App_Browse_Helper_', 
1 => 'Watchmanager_App_Helper_', 
2 => 'Watchmanager_View_Helper_', 
3 => 'Solar_View_Helper_', 
4 => 'Solar_View_Helper_', ), )

What am I missing?

-- 
Jeff Surgeson / South Africa


More information about the solar-talk mailing list