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