public function ajaxdeleteAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); $planId = $this->_getParam('id',0); if($planId > 0) { $mplans = new Pment_Models_MplanMapper(); try{ $mplans->delete($planId); echo "s"; } catch(Exception $e) { echo "f"; } } else { $this->_redirect('pment/mplan'); } }