/** * Get the row referenced by the value and set it to the element before rendering it. * @param Zend_View_Interface $view * @return string */ public function render(Zend_View_Interface $view = null) { if ($this->getValue() !== null) { $relatedModel = Centurion_Db::getSingletonByClassName($this->_reference); $this->setValue($relatedModel->findOneById($this->getValue())); } return parent::render($view); }
protected function _generateInfoField($baseName, $label, $value, $escape = true) { $fInfo = new Centurion_Form_Element_Info(array('disableTranslator' => true, 'name' => 'info_' . $baseName, 'label' => $label, 'value' => $value, 'escape' => $escape), 'info_' . $baseName); $fInfo->setAttrib('large', true); return $fInfo; }