Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Symfony2 Essentials
  • Table Of Contents Toc
Symfony2 Essentials

Symfony2 Essentials

By : Wojciech Bancer
2.7 (7)
close
close
Symfony2 Essentials

Symfony2 Essentials

2.7 (7)
By: Wojciech Bancer

Overview of this book

Symfony is a free and open source PHP MVC web application development framework, which helps you create and maintain web applications and replace recurrent coding tasks. It integrates with an independent library, PHPUnit, to give you a rich testing framework. It is one of the best and most popular frameworks available on the market. Popular projects such as Drupal, Laravel, and phpBB also use Symfony. Its well-organized structure, clean code, and good programming practices make web development a breeze. Symfony2 Essentials will guide you through the process of creating a sample web application with Symfony2. You will create a To-Do application, using a few of the most commonly used Symfony2 components, and discover how to perform these development tasks efficiently. This book introduces you to the Symfony framework with a quick installation guide and a brief explanation of its key features including the MVC architecture, twig templating, dependency injection, and more. You will learn to manage dependencies, create controllers, views, and API calls, and secure your application. Next, you will go through the steps that are common for most web applications, which include writing CRUD and AJAX, handling forms, validation, translations, and the command-line interface, and e-mail sending features. The book ends with best practices, debugging, profiling, and deployment procedures. By the end of this book, you will have learned how to combine a Symfony2 framework with other open source code to speed up the development process.
Table of Contents (12 chapters)
close
close
11
Index

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...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Symfony2 Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon