Questions & Feedback
Found a typo or an error?
Want to improve this document? Edit it.
Need support or have a technical question?
Post to the user mailing-list.
Master Symfony2 fundamentals
Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).
trainings.sensiolabs.com
Symfony hosting done right
ServerGrove, outstanding support at the right price for your Symfony hosting needs.
servergrove.com
Discover the SensioLabs Support
Access to the SensioLabs Competency Center for an exclusive and tailor-made support on Symfony
sensiolabs.com
master version
The Cookbook
A cookbook is not intended to teach you how to cook: it guides you in preparing specific dishes according to a precise methodology. The Symfony cookbook is similar: You will find specific solutions for specific needs.
The Cookbook¶
- Assetic
- Bundles
- How to install 3rd party Bundles
- How to use Best Practices for Structuring Bundles
- How to use Bundle Inheritance to Override parts of a Bundle
- How to Override any Part of a Bundle
- How to remove the AcmeDemoBundle
- How to expose a Semantic Configuration for a Bundle
- How to simplify configuration of multiple Bundles
- Cache
- Configuration
- How to Master and Create new Environments
- How to override Symfony's Default Directory Structure
- Understanding how the Front Controller, Kernel and Environments work together
- How to Set External Parameters in the Service Container
- How to use PdoSessionHandler to store Sessions in the Database
- How to use the Apache Router
- Configuring a web server
- Console
- Controller
- Debugging
- Deployment
- Doctrine
- How to handle File Uploads with Doctrine
- How to use Doctrine Extensions: Timestampable, Sluggable, Translatable, etc.
- How to Register Event Listeners and Subscribers
- How to use Doctrine's DBAL Layer
- How to generate Entities from an Existing Database
- How to work with Multiple Entity Managers and Connections
- How to Register Custom DQL Functions
- How to Define Relationships with Abstract Classes and Interfaces
- How to provide model classes for several Doctrine implementations
- How to implement a simple Registration Form
- Event Dispatcher
- Form
- How to customize Form Rendering
- How to use Data Transformers
- How to Dynamically Modify Forms Using Form Events
- How to Embed a Collection of Forms
- How to Create a Custom Form Field Type
- How to Create a Form Type Extension
- How to Reduce Code Duplication with "inherit_data"
- How to Unit Test your Forms
- How to configure Empty Data for a Form Class
- How to use the submit() Function to handle Form Submissions
- (validation) How to create a Custom Validation Constraint
- (doctrine) How to handle File Uploads with Doctrine
- Logging
- Profiler
- Request
- Sessions
- Routing
- How to force routes to always use HTTPS or HTTP
- How to allow a "/" character in a route parameter
- How to configure a redirect to another route without a custom controller
- How to use HTTP Methods beyond GET and POST in Routes
- How to use Service Container Parameters in your Routes
- How to create a custom Route Loader
- Security
- How to load Security Users from the Database (the Entity Provider)
- How to add "Remember Me" Login Functionality
- How to implement your own Voter to blacklist IP Addresses
- How to use Access Control Lists (ACLs)
- How to use Advanced ACL Concepts
- How to force HTTPS or HTTP for Different URLs
- How to customize your Form Login
- How to secure any Service or Method in your Application
- How to create a custom User Provider
- How to create a custom Authentication Provider
- How to change the Default Target Path Behavior
- Serializer
- Service Container
- Sessions
- symfony1
- Templating
- Testing
- How to simulate HTTP Authentication in a Functional Test
- How to simulate Authentication with a Token in a Functional Test
- How to test the Interaction of several Clients
- How to use the Profiler in a Functional Test
- How to test code that interacts with the Database
- How to test Doctrine Repositories
- How to customize the Bootstrap Process before running Tests
- (email) How to test that an Email is sent in a functional Test
- Validation
- Web Services
- Workflow





is a trademark of Fabien Potencier. All rights reserved.