Codeigniter + Angular Js: How to receive JSON data

后端 未结 5 1131
盖世英雄少女心
盖世英雄少女心 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:43

    $_POST will be empty in CodeIgniter because it purposely empties it for security reasons. You need to use $this->input->post(); instead.

    CodeIgniter Input Class

提交回复
热议问题