/** * Get standard form helper * * @return Zend_View_Helper_Form */ public function getFormHelper() { if (null === $this->_helper) { $this->_helper = new Zend_View_Helper_Form(); $this->_helper->setView($this->view); } return $this->_helper; }
/** * Get standard form helper * * @return Zend_View_Helper_Form */ public function getFormHelper() { if (null === $this->_helper) { require_once 'Zend/View/Helper/Form.php'; $this->_helper = new Zend_View_Helper_Form(); $this->_helper->setView($this->view); } return $this->_helper; }
public function ajaxableForm($name, $action, $method, array $attribs = array()) { parent::form($name, $action, $method, $attribs); $this->html .= "\n" . $this->startAjax(); $script = <<<END <script> AjaxForm.convert(\$('{$name}')); </script> END; $this->html .= "\n" . $script; return $this; }
public function renderOpen(Zend_View_Interface $view = null) { $zvhf = new Zend_View_Helper_Form(); $zvhf->setView($this->getView()); return $zvhf->form($this->getName(), $this->getAttribs()); }