In Controller:
class IndexController extends Zend_Controller_Action
{
public function init()
{
$this->form = new RPS_Forms_Build_Ocorrencias();
}
public function indexAction()
{
//Zend Form Elements
$values = $this->form->buildForm();
$form = new Zend_Form();
$form->setAction('/process');
$form->addElements($values);
$form->addDisplayGroup(array('origem'), 'left');
$form->addDisplayGroup(array('sistema'), 'left1');
$this->view->form = $form;
}
}
In View:
<div id="esq">
<?=$this->form->left;?>
</div>
<div id="nav">
<?=$this->form->left1;?>
</div>
So the problem is:
It only renders the Form elements, it doesn´t render the action, so my form
isn´t really a form, just a couple of inputs.
If I pass the render() method it renders again all the elements.
How can I render the groups?
Please advice
Thanks
--
View this message in context:
http://n4.nabble.com/Zend-Form-displayGroup-render-problem-tp1556433p1556433.html
Sent from the Zend Framework mailing list archive at Nabble.com.