Zend Framework: Zend_Form in layout -


how add zend_form layout? layout has no "controller" in initiate form. how do this?

in response phil brown's comment:

class my_view_helper_addmyform extend zend_view_helper_abstract() {     public function addmyform() {         return new my_form_myform();     }  } 

now in layout:

echo $this->addmyform(); 

i have not tested it, should work assuming have registered my/view/helper helper path. less code, , call when need it.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -