Created
June 6, 2011 11:22
-
-
Save siygle/1010088 to your computer and use it in GitHub Desktop.
Silex Hello World!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__.’/silex.phar’; | |
$app = new SilexApplication(); | |
$app->get(‘/hello/{name}’, function($name) { | |
return "Hello $name"; | |
}); | |
$app->run(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment