Created
May 9, 2011 14:12
-
-
Save pinscript/962581 to your computer and use it in GitHub Desktop.
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 'outpost.php'; | |
$app = new Outpost; | |
$app->before(function() { | |
echo "Running before filter<br /><br />"; | |
}); | |
$app->after(function() { | |
echo "<br /><br />Running after filter"; | |
}); | |
$app->get('/', function($r) { | |
echo "<h1>Root page</h1>"; | |
}); | |
$app->get('/:name', function($r) { | |
echo "<h1>Hello " . $r->name . "</h1>"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment