Register view_helper zf 1.10.3

Posted by Alexandr on Stack Overflow See other posts from Stack Overflow or by Alexandr
Published on 2010-06-14T12:07:51Z Indexed on 2010/06/15 7:12 UTC
Read the original article Hit count: 331

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about view