Send data from angularjs it's not working!

Hi, I have a problem with Angularjs and Phalcon. When I send data to Phalcon action I receive on $POST something like this: Array ( [{"title":"asdasd"}] => ) How to convert this to acces data like $this->request->getPost('title');

Thank you!



3.0k
edited Jun '17

It's JSON format

Change link to new doc

https://docs.phalconphp.com/fr/3.2/tutorial-rest

See Inserting data and updating data

You are sending it as json body, not the post form, use getJsonRawBody method