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

The Symfony2 profiler


The profiler information is collected and stored within the cache directory and stored in simple serialized data files. You can access them by the token generated, and they will persist as long as the file exists in the cache folder.

The Web Debug Toolbar is displayed only in the development mode. If you run your configuration in the production mode, it will not be displayed, and it is not recommended to change this setting.

After you log in, you should notice changes in the form section and in the database section. Click on the form section to see something similar to this:

This is one of the most useful screens while debugging to check what went wrong with the form object. In the middle column, you have exposed all the form widgets that have been applied to. In the right column, you have information about the passed objects, model, and submitted data.

This section is most useful while checking why the form did not validate properly. So let's try to generate some errors...

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