Not see my view helper
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/14
12:32 UTC
Read the original article
Hit count: 387
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