Create your own framework... on top of the Symfony2 Components (...

Courtesy Planet PHP  Mon, 01/09/2012 - 02:27

Before we start with today's topic, let's refactor our current framework just a little to make templates even more readable:

<?php   // example.com/web/front.php   require_once __DIR__.'/../src/autoload.php' ;   use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response;   $request = Request::createFromGlobals ( ) ;   $map = array ( '/hello' => 'hello' , '/bye' => 'bye' , ) ;   $path = $request ...


 

More related items

An Update On Composer - Nelmio
This weekend we have been busy hacking on Composer in our office together with Nils Adermann and Volker Dusch. We wanted to push the project forward a bit faster than the odd free evenings...

Lorna Mitchell's Blog: Building A RESTful PHP Server:...
Lorna Mitchell is back with another post in her "Building a RESTful PHP Server" series today with this new post showing how to work with output handlers (her focus is on JSON). So far...

Nelm.io Blog: Composer: Part 1 - What & Why
On the Nelm.io blog today there's a new post (part one of a series) about using Composer and Packagist to manage PHP applications as packages. You may have heard about Composer and...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com