Esempio n. 1
0
	public function ajaxdeleteAction()
	{
		$this->_helper->layout()->disableLayout();
		$this->_helper->viewRenderer->setNoRender(true);
		$contractorId = $this->_getParam('id',0);
		if($contractorId>0)
		{
			$contractors = new Contract_Models_ContractorMapper();
			try{
				$contractors->delete($contractorId);
				echo "s";
			}
			catch(Exception $e)
			{
				echo "f";
			}
		}
		else
		{
		 $this->_redirect('/contract');
		}
	}