We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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!



5.1k
edited Jun '17

It's JSON format

Change link to new doc

https://docs.phalcon.io/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