Symfony2 AJAX implementation sample

So I spent a whole day trying to figure things out.

Basically I had to do several things:

  • create action for the addRecitation
  • create the route with /get/{id}.{_format}
  • return object with a special class Response from XML HTTP request symfony
  • now I am implementing the callback function from ajax javascript the client side

One thought on “Symfony2 AJAX implementation sample

Leave a Reply

Your email address will not be published. Required fields are marked *