Symfony Framework Documentation
The Documentation Changelog
January, 2015
December, 2014
November, 2014
October, 2014
September, 2014
August, 2014
July, 2014
June, 2014
May, 2014
April, 2014
March, 2014
February, 2014
January, 2014
The Quick Tour
The Big Picture
The View
The Controller
The Architecture
The Book
Symfony and HTTP Fundamentals
使用 Symfony 与不使用框架的对比
Installing and Configuring Symfony
Creating Pages in Symfony
控制器(Controller)
Routing
Creating and Using Templates
Databases and Doctrine
Databases and Propel
Testing
Validation
Forms
Security
HTTP Cache
Translations
Service Container
Performance
Internals
The Cookbook
Assetic
Bundles
Cache
Installing Composer
Configuration
Console
Controller
How to Optimize your Development Environment for Debugging
Deployment
Doctrine
Email
Event Dispatcher
Form
Logging
Profiler
Request
Routing
Security
How to Use the Serializer
Service Container
Sessions
How Symfony2 Differs from Symfony1
Templating
Testing
How to Upgrade Your Symfony Project
Validation
Web Server
Web Services
Workflow
Official Symfony Best Practices
The Symfony Framework Best Practices
Creating the Project
Configuration
Organizing Your Business Logic
Controllers
Templates
Forms
Internationalization
Security
Web Assets
Tests
The Components
How to Install and Use the Symfony Components
ClassLoader
Config
Console
The CssSelector Component
The Debug Component
DependencyInjection
The DomCrawler Component
EventDispatcher
The Filesystem Component
The Finder Component
Form
HttpFoundation
HttpKernel
The Intl Component
The OptionsResolver Component
The Process Component
PropertyAccess
Routing
Security
The Serializer Component
The Stopwatch Component
Templating
Translation
Yaml
Reference Documents
FrameworkBundle Configuration (“framework”)
DoctrineBundle Configuration (“doctrine”)
SecurityBundle Configuration (“security”)
AsseticBundle Configuration (“assetic”)
SwiftmailerBundle Configuration (“swiftmailer”)
TwigBundle Configuration (“twig”)
MonologBundle Configuration (“monolog”)
WebProfilerBundle Configuration (“web_profiler”)
Configuring in the Kernel (e.g. AppKernel)
Form Types Reference
Validation Constraints Reference
Twig Template Form Function and Variable Reference
Symfony Twig Extensions
The Dependency Injection Tags
Requirements for Running Symfony
Contributing
Contributing Code
Contributing Documentation
Community
Symfony Framework Documentation
Docs
»
The Cookbook
»
Templating
Edit on GitHub
Templating
¶
How to Inject Variables into all Templates (i.e. global Variables)
Using Service Container Parameters
Referencing Services
Using a Twig Extension
How to Use and Register Namespaced Twig Paths
Registering your own Namespaces
How to Use PHP instead of Twig for Templates
Rendering PHP Templates
Decorating Templates
Working with Slots
Including other Templates
Embedding other Controllers
Using Template Helpers
Output Escaping
How to Write a custom Twig Extension
Create the Extension Class
Register an Extension as a Service
Using the custom Extension
Learning further
How to Render a Template without a custom Controller
Caching the static Template
Read the Docs
v: latest
Versions
latest
Downloads
htmlzip
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.