1
Overview of the Symfony 2 framework
- Object-oriented programming refreshers
- Global overview of Symfony 2.
- Main concepts, MVC architecture.
- Installing Symfony 2.
- Project architecture: Application, bundles, etc.
- Processing an HTTP query with Symfony 2.
Hands-on work
Examples with Symfony 2.
2
Starting with the Symfony 2 framework
- Configuring the application and overriding.
- Command line tools.
- Code debugging tools: Web Debug Toolbar, etc.
- Autoloading classes.
Hands-on work
Getting started in the environment. Description of the Web application that will serve as a red line.
3
The “controller layer” and URL management
- Defining a “controller” and its “actions”.
- Mapping the controllers to the routing system.
- Accessing information from the http query.
- Redirecting to another page, displaying a 404 error page.
- Routing mechanism and URL management.
- Injecting dependencies and service containers.
Hands-on work
Setting up the application's controller. Handling query and session information. Implementing the redirect.
4
The “view layer” and the Twig template engine
- Using templates. Twig template engine.
- Inheriting templates. Inclusion in templates.
- Modular templates. Helpers.
Hands-on work
Creating and using templates. Setting up the application's View layer.
5
The Model layer
- Defining the model and database.
- Overview of Doctrine 2 (DBAL and ORM).
- Management of persistent objects.
- Object querying, accessors, relationships, and associations.
- Code reworking and business objects.
Hands-on work
Setting up the application's Model layer.
6
Forms and approving them
- Creating a simple form.
- Displaying a form in templates.
- Heightened security with tokens (SCRF).
- Approving forms.
Hands-on work
Creating forms Adding pages to the red line application. Setting up approval.
7
Going further with the Symfony 2 framework
- Security, access control, and authentication.
- Automated tests with PHPUnit.
- E-mail solution.
- Web services (SOAP and Rest).
- Adding new macros, Twig functions.
Hands-on work
Implementation and tests.