News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gonzalo Ayuso:
Scaling Silex applications (part II). Using RouteCollection
March 06, 2013 @ 09:21:31

Gonzalo Ayuso has posted a second part of his look at scaling Silex (here's part one). In this new article he shows how to use the RouteCollection functionality instead of defining the routes in the DI configuration.

In the post Scaling Silex applications I wanted to organize a one Silex application. In one comment Igor Wiedler recommended us to use RouteCollections instead of define the routes with a Symfony's Dependency Injection Container. Because of that I started to hack a little bit about it and here I show you my outcomes:

He includes example code for creating the application, setting up the main "routes.yml" file with some defaults and two other files for routes in other parts of the site - "api" and "blog". Then he makes the controllers related to these three sections with basic actions catching each of the routes. The source for the entire thing is over on github.

0 comments voice your opinion now!
silex scaling application tutorial routercollection yaml


blog comments powered by Disqus

Similar Posts

Community News: Symfony Framework Makes Some Updates (v.0.6.2 and Content)

PHP-GTK Blog: How to: PHP 5.3 with PHP-GTK and Cairo on Linux Mint 9

Job Posting: Wasabi Systems Seeks Web Applications Engineer (Norfolk, VA)

Stefan Mischook's Blog: Cannot load mysql extension error - Video Tutorial How To

Joshua Eichorn's Blog: PHP Running on Java


Community Events

Don't see your event here?
Let us know!


configure example install interview api release language performance laravel php7 series podcast opinion symfony2 conference introduction library community framework application

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework