문제

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