public function testAction() { Zend_Controller_Front::getInstance()->setParam('noViewRenderer', true); require_once 'Zend/Form.php'; require_once 'Zend/Form/SubForm.php'; $form = new Zend_Form(); $form->setMethod('post')->setAttrib('id', 'contactForm'); $form->addElement('text', 'vorname'); $form->addElement('text', 'nachname'); $form->addElement('text', 'gebdate'); $form->addElement('text', 'strasse'); $form->addElement('text', 'plz'); $form->addElement('text', 'ort'); $form->setElementDecorators(array( array('ViewHelper'), array('Errors'), array('Description'), array('Label', array('separator'=> null)), array('HtmlTag', array('tag' => null)), )); $this->view->form = $form; echo $this->view->render('lehrer/register11.phtml'); }