Introduction to Symfony
Learn the basics of the Symfony framework and get ready to develop your first applications.
In one day, discover the Symfony2 framework basics and learn how to build your first application.
Coming sessions
Goals
This practical workshop is an introduction to the Symfony framework. It covers all the basics in just one single day. From the installation to the configuration and request management, you will learn how to create your very first MVC application with Symfony.
Program
Discovering Symfony2
- PHP 5.3 namespaces
- Installation & configuration
- Architecture and code organization
- Bundles principles
- Autoloading mechanism
Towards Separation of Concerns
- Decoupling the code
- Configuring the routing
- Managing the application logic in Controllers
- Encapsulating the business logic into the Model layer
- Rendering pages with the View layer and templates
Inside the View Layer
- Introduction to Twig template engine
- Template inheritance & blocks
- Loops and conditions
- Templates inclusion
- Actions rendering
- Filters & functions
- Output escaping
Inside the Controller Layer
- Request handling
- Passing variables to the view
- Triggering redirections
- Triggering 404 pages
- Reading the user's request
- Persisting data with sessions and cookies
Debugging Tools
- The Web Debug Toolbar
- Logs
- Exception traces
- The Profiler application
Best practices
- Security: protecting the application against XSS and CSRF issues
- Code refactoring
- Generating code with the command line tool
- Coding conventions
- Bundles architecture
Session details
Reference code
SF2W1
Price
Starts at €350.00 (ex. tax)
Audience
Developers
Duration
1 day
Training type
Workshop
Topics
Installation, templating, configuration, routing
Pre-requisites
PHP & Object Oriented Programming
