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
Post a Comment