Advertisement
Pooky

Zend Form

Jan 31st, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. /*** Form code ****/
  2.         $this->setDecorators(array(
  3.             array('ViewScript', array('viewScript' => '/forms/slidingDoor.phtml'))
  4.         ));
  5.     $this->addSubForm($subForm, 'partitionsForm');
  6.  
  7. /****** VIEW script *****/
  8. <?
  9. /* @var $form Zend_Form */
  10. $form = $this->element;
  11. ?>
  12. <div id="partitionsForm">
  13.     <?= $form->partitionsForm->fillings ?>
  14. </div>
  15. // it renders only <input type="select" name="fillings"> not <input type="select" name="partitionsForm[fillings]">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement