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!

edited Jun '17

It's JSON format

Change link to new doc


See Inserting data and updating data

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