The Cookbook
Edit this pageWarning: You are browsing the documentation for Symfony 2.2, which is no longer maintained.
Read the updated version of this page for Symfony 7.0 (the current stable version).
The Cookbook
-
- 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
-
- 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
Debugging
Deployment
-
- 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 implement a simple Registration 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 Unit Test your Forms
- 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
-
- How to force routes to always use HTTPS or HTTP
- How to allow a "/" character in a route parameter
- How to Configure a Redirect 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
- Redirect URLs with a Trailing Slash
-
- 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
symfony1
-
- 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
This work, including the code samples, is licensed under a
Creative Commons BY-SA 3.0
license.