public function indexAction() { $form = new TestForm(); $form->setMethod('post')->setLegend('Legend form')->setDescription('My super hyper genial form description')->setAction($this->_helper->url('index', 'test', 'admin')); if ($this->getRequest()->isPost()) { $posts = $this->getRequest()->getPost(); if ($form->isValid($posts)) { } else { $form->populate($posts); } } $this->view->form = $form; }