public function get_top_selling_branches_post() { $date_from = $this->input->post('dateFrom'); $date_to = $this->input->post('dateTo'); $by_quantity = $this->input->post('byQuantity'); // true or false $analytics = new Analytics($this->base_model->get_db_instance()); echo $analytics->get_top_selling_branches($date_from, $date_to, $by_quantity); }
public function get_top_selling_branches_post() { $analytics = new Analytics($this->base_model->get_db_instance()); echo $analytics->get_top_selling_branches('2015-06-07 14:56:03', date('Y-m-d H:i:s'), !true); }