예제 #1
0
 public function get_sales_by_month_post()
 {
     $year = $this->input->post('year');
     $by_quantity = $this->input->post('byQuantity');
     // true or false
     $analytics = new Analytics($this->base_model->get_db_instance());
     echo $analytics->get_sales_by_month($year, $by_quantity);
 }
예제 #2
0
 public function get_sales_by_month_post()
 {
     $analytics = new Analytics($this->base_model->get_db_instance());
     echo $analytics->get_sales_by_month(2015, true);
 }