/** * Perform some actions on the form, right before it is displayed but already populated * * Here we add the table display to the form. * * @return \Zend_Form */ public function beforeDisplay() { if ($this->_csrf) { $this->_csrf->initCsrfToken(); } if ($this->layoutAutoWidthFactor || $this->layoutFixedWidth) { $div = new \MUtil_Html_DivFormElement(); if ($this->layoutFixedWidth) { $div->setAsFormLayout($this->_form, $this->layoutFixedWidth); } else { $div->setAutoWidthFormLayout($this->_form, $this->layoutAutoWidthFactor); } } }