spaceage wrote:
Hi,
I'm trying to get a custom view helper to work...
...
Why the exception?
Hi,
I think the class name should be My_View_Helper_CartVitals().
And i guess the underscore is not required when adding a path:
$view-addHelperPath('/application/views/helpers', 'My');
Thanks, that was the trick...addHelperPath assumes 'View_Helper' appended to
the namespace prefix sent as second parameter.
dmitrybelyakov wrote:
spaceage wrote:
Hi,
I'm trying to get a custom view helper to work...
...
Why the exception?
Hi,
I think the class name should
spaceage wrote:
Thanks, that was the trick...addHelperPath assumes 'View_Helper' appended
to the namespace prefix sent as second parameter.
Glad i was able to help.
Good luck.
Dmitry.
--
View this message in context:
http://www.nabble.com/View-Helper-paths-tp24006943p24017279.html
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()