@ -6,7 +6,6 @@ class Order extends CI_Controller {
}
public function index() {
// echo 'dsfasd';
$this->load->view('order/index');
@ -23,6 +23,14 @@ class Order_model extends CI_Model {
where
COLI_ID = ?)", $order_id);
$order_array = $order_query->row_array();
if (empty($order_array)) {
$order_array = [
'COLI_Name' => 'NULL',
'COLI_OrderDetailText' => 'NULL',
'COLI_OrderStartDate' => 'NULL'
];
return $order_array;