Here I am sending post request to my manager/approveit controller ^^
And i am receiving the data like this in my controller manager's function approveit() like this
public function approveit(){
//print_r($id);
print_r(json_decode(file_get_contents('php://input')));
$this->input->post();
echo "halalala";
}
But i am not even redirected to the page manager/approveit. I have seen answers like:-
Codeigniter + Angular Js: How to receive JSON data
How can I post data as form data instead of a request payload?
and have applied them but they didn't work here, please tell me how to send post request from angular to my php CI controller.