public function render(Zend_View_Interface $view = null) { $realName = $this->getName(); foreach ($this->_parentForm->getElements() as $key => $element) { if ($element === $this) { $realName = $key; } } $this->setDecorators(array(new Media_Form_Decorator_MultiFile())); $ticket = Centurion_Db::getSingleton('media/multiupload_ticket')->createTicket($this->_parentForm, $realName); $this->setAttrib('ticket', $ticket->ticket); return parent::render($view); }
public function render(Zend_View_Interface $view = null) { $this->removeDecorator('Label'); return parent::render(); }
/** * Renders an element with only the view helper decorator * * @param Zend_Form_Element $element */ protected function _renderElement(Zend_Form_Element $element) { $element->setDecorators(array('ViewHelper')); return trim($element->render($this->getElement()->getView())); }
/** * Render form element * * @param Zend_View_Interface $view * @return string */ public function render(Zend_View_Interface $view = null) { $this->setBootstrapConfiguration(); return $this->bsUtils->divFormGroup(parent::render($view)); }
public function render(Zend_View_Interface $view = null) { $file = Centurion_Db::getSingleton('media/file')->findOneById($this->_value); return parent::render($view) . '<img src="' . $file->getStaticUrl(array('resize' => array('maxWidth' => 100, 'maxHeight' => 100))) . '" />'; }