application/controllers/Dashboard.php
//controller for the deleting of establishment
controller for the deleting of establishment
controller for the deleting of establishment
function deleteEstablishment(){
	 		$ret = $this->dashboard_model->Delete($_POST['id'], 'establishment');
			if($ret != "Error"){
				$this->dashboard_model->deleteEstabPhoto($_POST['id']);
			}
	 		echo json_encode($ret);
	 	}
function deleteEstablishment ( ) { $ ret = $ this -> dashboard_model -> Delete ( $ _POST [ 'id' ] , 'establishment' ) ; if ( $ ret != " Error " ) { $ this -> dashboard_model -> deleteEstabPhoto ( $ _POST [ 'id' ] ) ; } echo json_encode ( $ ret ) ; }
controller for the deleting of establishment
controller for the deleting of establishment