How can we pass result data from CodeIgniter controller to AngularJS controller?

后端 未结 1 1631
滥情空心
滥情空心 2021-01-28 22:53

How can we pass result data from CodeIgniter controller to AngularJS controller? In CodeIgniter controller using jsonSuccess code here I\'m passing data to AngularJS but I woul

1条回答
  •  -上瘾入骨i
    2021-01-28 23:14

    I already gave you the solution this is Repeated Question

    $data['siteName']   =   $CI->config->item('siteName');
    $data['siteURL']   = site_url();
     if($data['status'] == 'success') {
       $data['result'] =   $this->LowCredit_model->info($data['data']);
       jsonSuccess($data);
     }
    

    0 讨论(0)
提交回复
热议问题