FormHelper::widget()

string widget(FormView $view, array $variables = array())

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' => '+++++')) ?>

Parameters

FormView $view The view for which to render the widget
array $variables Additional variables passed to the template

Return Value

string The HTML markup
doc_Symfony
2016-10-28 06:18:52
Comments
Leave a Comment

Please login to continue.