View Single Post
  #4 (permalink)  
Old 04-11-2008, 03:33 PM
MiK MiK is offline
Junior Member
 
Join Date: Mar 2008
Location: Ancona, Italy
Posts: 17
Send a message via MSN to MiK
Default

Thanks for your interest.

Since i'm currently still developing the class, i don't have a "STABLE" release.
Please allow a couple of days in order to let me build a working example, and
so i will post the complete code as attachment here.

One of my last edit was the ability to fetch an array of a subform elements ( Multipage_Form::getStepElements() ) in order to pass it directly to the view,
and without being limited by zend_form decorators behaviour.

Something like:
PHP Code:
class MyController {
  
// .. Some other code ..
  
$this->view->form $form->getStepElements($stepId);
  echo 
$this->view->render('mytemplate');

And in the view (as told before, i use smarty_view as view renderer):
HTML Code:
<table>
  <tr>
   <td>{$form.field1->getLabel()}</td>
   <td>{$form.field1}</td>
  <tr>
   <td colspan="2">{$form.submit}</td>
  </tr>
</table>
I've got too much work these days, i hope i'll be able to post the code within Monday. I'll keep you updated.
Reply With Quote