public function editAction() { $request = $this->getRequest(); $id = $this->_getParam('id', 0); $this->_helper->viewRenderer->setNoRender(); $this->_helper->getHelper('layout')->disableLayout(); $form = new Contacts_Form_Contact(); if ($request->isPost()) { $data = $request->getPost(); if ($form->isValid($data) || true) { $addressDb = new Contacts_Model_DbTable_Address(); if ($id > 0) { $addressDb->updateAddress($id, $data); } } } $this->view->form = $form; }