public function answerAction() { $this->setEntity($this->view($this->getRequest()->getParam('id', null))); $this->create(); $this->view->form->removeElement('title'); $this->view->form->removeElement('reciver'); $reciver = new Zend_Form_Element_Hidden('reciver'); $reciver->setName('reciver')->setValue($this->getEntity()->author); $title = new Zend_Form_Element_Hidden('title'); $title->setName('title')->setValue('Re: ' . $this->getEntity()->title); $parent_id = new Zend_Form_Element_Hidden('parent_id'); $parent_id->setName('parent_id')->setValue($this->getEntity()->id); $this->view->form->addElement($reciver)->addElement($title)->addElement($parent_id); }