Codeigniter + Angular Js: How to receive JSON data

后端 未结 5 1120
盖世英雄少女心
盖世英雄少女心 2020-12-16 20:24

This is the situation:

I have a simple app made in Angular JS that comunicate with the server through an API made in codeigniter.

There is a

5条回答
  •  醉梦人生
    2020-12-16 20:50

    Use:

    $postData = $this->input->post();
    

    It should give you an array with all the post data.

    I also advise you to turn on XSS filtering.

    Following is the documentation for the Codeigniter Input Class: http://ellislab.com/codeigniter/user-guide/libraries/input.html

提交回复
热议问题