WARNING:
You are browsing the documentation for Symfony 2.0
which is not maintained anymore.
Consider upgrading your projects to Symfony 5.2.
The Symfony Cookbook
The Symfony Cookbook is a continuously growing collection of specific recipes that explain how to correctly solve the most recurrent problems that Symfony developers face in their day to day work.
The Cookbook¶
- Assetic
- 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 PdoSessionStorage 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 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 use the Virtual Form Field Option
- How to configure Empty Data for a Form Class
- (validation) How to create a Custom Validation Constraint
- (doctrine) How to handle File Uploads with Doctrine
- Logging
- Profiler
- Request
- Routing
- 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
- Service Container
- 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
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.