Skip to content
Wesley Overdijk edited this page Aug 29, 2013 · 5 revisions

This assumes that you already have a zend\Form assigned to your view. If you haven't, or don't know how to work with forms yet, take a look at the Zend\Form reference guide.

<?php
// render whole form
echo $this->sxbForm($this->form);

// If you wish to group the action controls (buttons) on the bottom, supply the second argument:
echo $this->sxbForm($this->form, true);
?>

Horizontal form

Creating a horizontal form is as easy as chaining on the horizontal method:

<?php
// render whole form horizontally
echo $this->sxbForm($this->form)->horizontal();
Clone this wiki locally