سؤال

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...

هل كانت مفيدة؟

المحلول

you may use this

<?= $this->form->df->renderUiWidgetElement(); ?>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top