FormInterface

interface FormInterface implements ArrayAccess, Traversable, Countable A form group bundling multiple forms in a hierarchical structure. Methods FormInterface setParent(FormInterface $parent = null) Sets the parent form. FormInterface|null getParent() Returns the parent form. FormInterface add(FormInterface|string|int $child, string|null $type = null, array $options = array()) Adds or replaces a child to the form. FormInterface get(string $name) Returns the child with the

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 v

FormHelper::start()

string start(FormView $view, array $variables = array()) Renders the form start tag. Example usage templates: <?php echo $view['form']->start($form) ?>> Parameters FormView $view The view for which to render the start tag array $variables Additional variables passed to the template Return Value string The HTML markup

FormIntegrationTestCase

class FormIntegrationTestCase extends PHPUnit_Framework_TestCase

FormHelper::setTheme()

setTheme(FormView $view, string|array $themes) Sets a theme for a given view. The theme format is ":". Parameters FormView $view A FormView instance string|array $themes A theme or an array of theme

FormHelper::label()

string label(FormView $view, string $label = null, array $variables = array()) Renders the label of the given view. Parameters FormView $view The view for which to render the label string $label The label array $variables Additional variables passed to the template Return Value string The HTML markup

FormHelper::humanize()

humanize($text) Parameters $text

FormHelper::row()

string row(FormView $view, array $variables = array()) Renders the entire form field "row". Parameters FormView $view The view for which to render the row array $variables Additional variables passed to the template Return Value string The HTML markup

FormHelper::rest()

string rest(FormView $view, array $variables = array()) Renders views which have not already been rendered. Parameters FormView $view The parent view array $variables An array of variables Return Value string The HTML markup

FormHelper::getName()

string getName() Returns the canonical name of this helper. Return Value string The canonical name