1-33
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Symfony2 – Franz Jordán 2011<br />
The routing layer is a tool that translates the incoming URL into a specific controller to execute.<br />
Creating Routes<br />
Symfony loads all the routes for your application from a single routing configuration file. The file is usually app/config/routing.yml, but can be<br />
configured to be anything (including an XML or PHP file) via the application configuration file:<br />
# app/config/config.yml<br />
framework:<br />
# ...<br />
router: { resource: "%kernel.root_dir%/config/routing.yml" }<br />
57