O'Reilly logo

Symfony2 Essentials by Wojciech Bancer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. AJAX

In the current chapter, we will look at some of the tools designed to help us in developing REST APIs. We will use these tools to write missing functionality in our application. At the end of this chapter, we will be able to do the following:

  • Edit an existing task
  • Mark a task as finished
  • Delete a task from the database

Symfony2 is a typical server-side PHP framework, so it does not offer a lot of built-in features to make frontend development easier. Typical issues that you may encounter are as follows:

  • Handling translations and routings within JavaScript files
  • Easily creating various non-standard HTTP requests such as PUT, PATCH, or DELETE
  • Handling multiple response formats (for example, JSON/XML)
  • Creating good API documentation
  • Testing/verifying ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required