public function render()
    {
        try{
            $output = '';

            $form = $this->resolve();

            $errors = $this->kernel->getErrors($this->form);

            $output = $this->kernel->render($form, $errors);

        } catch(\Exception $e){

            // todo log exception
            $output = '<error>'.$e->getMessage().'</error>';

        }

        return $output;
    }
public function render()
    {
        try{
            $output = '';

            $form = $this->resolve();

            $errors = $this->kernel->getErrors($this->form);

            $output = $this->kernel->render($form, $errors);

        } catch(\Exception $e){

            // todo log exception
            $output = '<error>'.$e->getMessage().'</error>';

        }

        return $output;
    }
public function render ( ) { try { $ output = '' ; $ form = $ this -> resolve ( ) ; $ errors = $ this -> kernel -> getErrors ( $ this -> form ) ; $ output = $ this -> kernel -> render ( $ form , $ errors ) ; } catch ( \ Exception $ e ) { // todo log exception $ output = '<error>' . $ e -> getMessage ( ) . '</error>' ; } return $ output ; }
Render the current form
@return string
Render the current form