示例#1
0
文件: Form.php 项目: alab1001101/zf2
 /**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
 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());
 }