From 9a9637bfb78475ffbc2f8b3414c43342be8c2b04 Mon Sep 17 00:00:00 2001 From: William Chanrico Date: Tue, 1 Nov 2016 05:40:31 +0700 Subject: [PATCH] fixed import_customers.csv template download path --- application/controllers/Customers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/Customers.php b/application/controllers/Customers.php index 13686d24d..f4f310500 100644 --- a/application/controllers/Customers.php +++ b/application/controllers/Customers.php @@ -158,7 +158,8 @@ class Customers extends Persons public function excel() { $name = 'import_customers.csv'; - $data = file_get_contents($name); + $dir = '..'; + $data = file_get_contents($dir . '/' . $name); force_download($name, $data); }