public function insertAction() { $request = $this->getRequest(); if ($request->isPost() && $this->formAdd->isValid($request->getParams())) { $table = new ValueList(); $data = array(ValueList::COL_ATTRIBUTE_DESCRIPTOR_ID => $this->atDeId, ValueList::COL_NAME => $this->formAdd->getValue(ValueList::COL_VALUE), ValueList::COL_VALUE => $this->formAdd->getValue(ValueList::COL_VALUE)); $table->insert($data); $this->redirectTo(); } else { $this->view->atDeName = Default_SimpleQuery::getAttributeName($this->atDeId); $this->view->formAdd = $this->formAdd; $this->view->formUpdate = $this->formUpdate; $this->render('edit'); } }