public function interestformajaxAction() { try { $request = $this->getRequest(); if ($this->getRequest()->isPost()) { $mapper = new Gyuser_Model_InterestsDataMapper(); $Obj = new Gyuser_Model_Interests(); $Obj->setRate($request->rate); if ($request->id) { $Obj->setId($request->id); } $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $id = $mapper->save($Obj); if ($id) { echo $id; } else { echo "f"; } } } catch (Exception $e) { echo $e; } }