public function ajaxdeleteAction() { $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(true); $repId = $this->_getParam('id',0); if($repId > 0) { $repairs = new Vehicle_Models_RepairMapper(); try{ $repairs->delete($repId); echo "s"; } catch(Exception $e) { echo "f"; } } else { $this->_redirect('/vehicle/repair'); } }