Symfony\Bundle\FrameworkBundle\Templating\Helper\FormHelper::widget
Renders the HTML for a given view.
Example usage: <?php echo view['form']->widget($form) ?> You can pass options during the call: <?php echo view['form']->widget($form, array('attr' => array('class' => 'foo'))) ?> <?php echo view['form']->widget($form, array('separator' => '+++++')) ?>
Signature
public function widget(FormView
$view,
array
$variables )
Parameters
$view
— Symfony\Component\Form\FormView- The view for which to render the widget
$variables
— array- Additional variables passed to the template
Returns
- string
- The HTML markup