Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Symfony2 Essentials

You're reading from   Symfony2 Essentials

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781784398767
Length 158 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

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 API calls and responses

The AJAX calls and, generally, raw API calls are nowadays one of the most popular functionalities you may encounter while developing a web application. Often, you will encounter requirements to support mobile...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image