I'm using ZF2 on our project and lately, we integrated it to Smarty templating system. We already made forms for our views with the help of Zend\Form native to ZF2. My question is: how can I get the actual HTML value (<input type="text">...
) on the controller level of all the form elements made by the Zend\Form of ZF2? Since Smarty3 doesn't allow PHP tags on the template side by default, I cannot just use the:
$form = $this->form;
$form->setAttribute('action', $this->url($property_folder, array('action' => $property_folder)));
$form->setAttribute('class', 'searchform');
$form->prepare();
. . .
If I can extract the actual HTML value of form elements, that would be a great help reusing them to other templates/themes the user desired.
Thanks in advance!