I use Zend Framework 1.12 on one of my projects. I need to use multiple forms in one page, and successfully managed to place them with the help of "render" function.
$this->oneAction();
$this->render('one');
$this->anotherAction();
$this->render('another');
There are two different actions for two forms, and in my indexAction() I call them like above. Two actions have their own scripts, and this code works well for placing 2 forms in one page.
Problem is; 2 different forms, with their own submit buttons (with different names), when second form is submitted, page reloads as a whole (naturally), but values in the first form's fields are lost.. I wrote a function to load some default values (for some fields of 1st form, taken from db) , and then it takes the values, but gives the error (Value is required and can't be empty) even they're filled by my function. I have to create a complex page with many forms, and can not go further with this problem.. I'd like to get a solution for this problem, or just little understanding about Zend Form's behavior about these multiple form submissions.
(There are many pages about these issues, but most of them just consider about placing multiple forms in same page, and no much more..)
Thanks in advance..