Added Contract CSV Export
This commit is contained in:
@@ -50,10 +50,17 @@ class ContractController extends mfBaseController {
|
||||
}
|
||||
//var_dump($filter);exit;
|
||||
$pagination['maxItems'] = ContractModel::count($filter);
|
||||
|
||||
if($this->request->export == "csv") {
|
||||
$pagination = false;
|
||||
$this->layout()->setTemplate("Contract/Export.csv");
|
||||
}
|
||||
|
||||
$contracts = ContractModel::search($filter, $pagination);
|
||||
|
||||
$this->layout()->set("contracts", $contracts);
|
||||
$this->layout()->set("pagination", $pagination);
|
||||
|
||||
}
|
||||
|
||||
private function getPreparedFilter($filter) {
|
||||
|
||||
Reference in New Issue
Block a user