Welcome Guest, Not a member yet? Register   Sign In
How to accept json data in codeigniter?
#1

Hello,

 i am getting data from angular2  which is ion json format. its content type  application/json

$fileData = file_get_contents("php://input");

$objFileData = json_decode($fileData);

this way i am accepting data but it does not show any thing in postmat when i try to call that webservice .
Reply


Messages In This Thread
How to accept json data in codeigniter? - by ktmonty - 09-15-2017, 06:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB