Exemple #1
0
 /**
  *
  *loads orders data to template rendered 
  */
 public function loadOrders()
 {
     require 'models/Stocks_model.php';
     $model = new Stocks_model();
     $type = $_GET['type'];
     echo json_encode($model->loadOrders($type));
 }