Register view_helper zf 1.10.3
- by Alexandr
I create my view helper it located in /library/My/View/helpers/SpecialPurpose.php
the class name is My_View_Helper_SpecialPurpose it have public function specialPurpose() it return some HTML
i register this path in bootstrap.php
$view = Zend_Layout::getMvcInstance()-getView();
$view-addBasePath('/my/view/helpers',"My_View_Helper");
when i tring specialPurpose();? in any view .phtml
it trow exeption
Message: Plugin by name 'SpecialPurpose' was not found in the registry; used paths: My_View_Helper_Helper_: /my/view/helpers\helpers/ Zend_View_Helper_: Zend/View/Helper/;D:/WWW/zends/application/modules/default/views\helpers/
P.S I read many post in stackoverflow but not one solutions not helped
If it possible weácan how do this task with bootstrap and application.ini
zf version 1.10.3