Exemplo n.º 1
0
 public function getSitebyBrandId()
 {
     $this->load->model('ranking_model');
     $brand_id = $this->input->post('brand_id');
     //var_dump($brand_id);die();
     $data = $this->ranking_model->getSitebyBrandId($brand_id);
     if (!empty($data)) {
         foreach ($data as &$site) {
             $site->name = strip_slashes($site->name);
         }
     }
     $this->output->set_content_type('application/json')->set_output(json_encode($data));
 }