Hi,

I'm trying to get a custom view helper to work...

In my views/helpers dir, I have a helper, CartVitals.php.  It defines a
class My_CartVitals and has a single public function, cartVitals().

In my bootstrap, I have the following _init:

        protected function _initViewHelperPath()
        {
                $this->bootstrap('view');
                $view = $this->getResource('view');
                $view->addHelperPath('/application/views/helpers', 'My_');
        }

When I invoke the helper in my layout:

echo $this->cartVitals();

I am getting the output of the helper when the page loads, which is great. 
Unfortunately, I also get an exception thrown:

Plugin by name 'CartVitals' was not found in the registry; used paths:
My_: /application/views/helpers/
Zend_View_Helper_:
Zend/View/Helper/:/Volumes/server/web/client/site/client/application/views/helpers/

Why the exception?
-- 
View this message in context: 
http://www.nabble.com/View-Helper-paths-tp24006943p24006943.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to