public function render()
    {
        if(!$this->template) {
            throw new \RuntimeException(sprintf("No template for element '%s' defined.", $this->getName()));
        }

        $this->html = $this->template->assign('element', $this)->display();
        return $this->html;
    }
public function render()
    {
        if(!$this->template) {
            throw new \RuntimeException(sprintf("No template for element '%s' defined.", $this->getName()));
        }

        $this->html = $this->template->assign('element', $this)->display();
        return $this->html;
    }
public function render ( ) { if ( ! $ this -> template ) { throw new \ RuntimeException ( sprintf ( "No template for element '%s' defined." , $ this -> getName ( ) ) ) ; } $ this -> html = $ this -> template -> assign ( 'element' , $ this ) -> display ( ) ; return $ this -> html ; }
renders form element and returns markup
requires a template for rendering

@return string
@throws \vxPHP\Application\Exception\ApplicationException
@throws \vxPHP\Template\Exception\SimpleTemplateException
renders form element and returns markup requires a template for rendering