ZendX JQuery DatePicker viewHelper
-
23-06-2021 - |
Pergunta
I built a form using the element DatePicker
$datefile= new ZendX_JQuery_Form_Element_DatePicker('df');
when I try to render this field in the view using
<?= $this->form->df->renderViewHelper(); ?>
like I render normal Zend_Form_Element_Text('xx')
<?= $this->form->xx->renderViewHelper(); ?>
I get this error:
An error occurred
Application error
Exception information:
Message: Decorator by name ViewHelper does not exist
I don't just echo the form using
echo $this->form
I use my own layout for the FORM..
Cant figure it out...
Solução
you may use this
<?= $this->form->df->renderUiWidgetElement(); ?>
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow