Escolar Documentos
Profissional Documentos
Cultura Documentos
com/en/training/symfony2
Symfony2
Be the first to learn about the Symfony2 PHP framework with experts.
In one day, discover the Symfony2 framework architecture and basics and learn how to build your first application.
Coming sessions
No session is currently scheduled.
Goals
Take the Symfony2 PHP framework into your hands and discover most of the main Symfony2 features like MVC implementation, forms processing, database handling...
Program
Discovering Symfony2
Framework installation Files organization Project, application and bundle concepts PHP 5.3 namespaces Autoloader
The MVC Architecture MVC principle Routing system The Controller layer: controller classes and actions The View layer: templates and helpers The Model layer: business logic
Inside the View layer Using Twig template engine Template inheritance Blocks Loops and conditions Templates inclusion Actions inclusion View helpers (string, date, url...) Variables escaping
Inside the Controller layer Request handling Passing variables to the view Forward vs redirection Getting information from the user (GET, POST...)
Inside the Model layer: Doctrine2 Discovering the Doctrine2 DBAL & ORM Configure the database connection Creating basic entity classes Building the model schema and the database from the CLI Managing entites with custom repositories Querying the database with DQL
Configuration & Environments Application, routing and core configuration Configuration per environment PHP, XML and YAML formats Mix and match configuration formats Dependency Injection principle
Debugging Tools The Web Debug Toolbar Logs Exception traces The Profiler application
Forms handling Basic form creation Validation rules Form processing and rendering Custom rendering with Twig
HTTP Cache Management Discovering HTTP caching rules Expiration principle Validation principle Sending caching headers with the response Introduction to ESI (Edge Side Includes)
Sending e-mails Discovering Swift Mailer Sending basic emails from your application Configuring Swift Mailer
Automated tests Installing PHPUnit Writing simple functional testing files Executing an automated tests suite
Best practices
Security: protecting the application against XSS and CSRF issues Refactoring the code and benefit from the ORM power Exploiting the command line and tasks Conforming to coding conventions Encapsulating code in Bundles to make it reusable and distributable Contributing to the Symfony2 project