I am working in a ZF 1.12.x project and I am adding a new custom helper stored at: /application/views/helpers/MyFormText.php (also tried with name View_Helper_MyFormText):
The content of the helper so far is simple as:
class MyFormText extends Zend_View_Helper_FormText
{
public function MyFormText($name, $value = null, $attribs = null)
{
// @TODO: check if the component can be rendered on the view
return parent::formText($name, $value, $attribs);
}
}
As soon as I access the page I end with this error:
[message:protected] => Plugin by name 'MyFormText' was not found in the registry; used paths: Zend_View_Helper_: Zend/View/Helper/:./../application/views/helpers/
Is weird that apparently this path:
Zend_View_Helper_: Zend/View/Helper/:./../application/views/helpers/
Is used for look the helpers but even though the class can't be loaded. I have read and tried all of these:
- Zend Framework Create Custom View Helper?
- How to add a view helper directory (zend framework)
- how to register new helper (custom helper ) in zend framework
- Zend: Where/how can I register custom view helpers?
What I am doing wrong? Can any give me some help on this? I am stuck