_element, $name); $baseUrl = Front::getInstance()->getRequest()->getBaseUrl(); $this->setHeaderCode('') ->setBodyCode(''); $this->setBodyCode( "" ); $this->addAttribute('class', self::ELEMENT_CLASS); } // /** // * // * set script code in case the element is not part of a form // * // * @return $this // */ // public function setScriptCode() // { // $view = Front::getInstance()->getBootstrap()->getResource('view'); // // /* @var \Cube\View\Helper\Script $helper */ // $helper = $view->getHelper('script'); // // $headerCode = $this->getHeaderCode(); // foreach ($headerCode as $code) { // $helper->addHeaderCode($code); // } // $bodyCode = $this->getBodyCode(); // foreach ($bodyCode as $code) { // $helper->addBodyCode($code); // } // // return $this; // } /** * * render the form element * * @return string */ public function render() { $value = $this->getValue(); return '