Warning: Exception caught by form: Plugin by name 'NumberElement' was not found in the registry; used paths: Precintos_View_Helper_: C:/wamp/www/Administrador/application/modules/precintos/views\helpers/ : C:\wamp\www\Administrador\application/helpers/ Zend_View_Helper_: Zend/View/Helper/ Stack Trace: #0 C:\wamp\www\testZF\library\Zend\View\Abstract.php( 1170): Zend_Loader_PluginLoader->load('NumberElement') #1 C:\wamp\www\testZF\library\Zend\View\Abstract.php( 610): Zend_View_Abstract->_getPlugin('helper', 'numberElement') #2 C:\wamp\www\testZF\library\Zend\Form\Decorator\Vie wHelper.php(241): Zend_View_Abstract->getHelper('numberElement') #3 C:\wamp\www\testZF\library\Zend\Form\Element.php(1 992): Zend_Form_Decorator_ViewHelper->render('') #4 C:\wamp\www\testZF\library\Zend\Form\Decorator\For mElements.php(101): Zend_Form_Element->render() #5 C:\wamp\www\testZF\library\Zend\Form.php(2672): Zend_Form_Decorator_FormElements->render('') #6 C:\wamp\www\testZF\library\Zend\Form.php(2687): Zend_Form->render() #7 C:\wamp\www\Ad in C:\wamp\www\testZF\library\Zend\Form.php on line 2692
mi helper lo puse en library como::
library
AVM
--Form
----Element
--------Number.php
--View
-----Helper
--------NumberElement.php
en mi application.ini puse: autoloaderNamespaces[] = "AVM"
y en mi formulario lo llamo asi:
Código PHP:
class Admin_Form_OrderForm extends Zend_Form{
Public function __construct($options = null) {
.....
$order = new AVM_Form_Element_Number('order');
.......
}}
Saludos