Skip to content

Instantly share code, notes, and snippets.

@claylo
Created June 14, 2011 03:26
Show Gist options
  • Save claylo/1024254 to your computer and use it in GitHub Desktop.
Save claylo/1024254 to your computer and use it in GitHub Desktop.
My Routed Controller
<?php
// Wow, we know what controller to use!
require_once 'MyApp/Controllers/Foo.php';
// handle your HTTP Methods inside your controller
$app = new MyApp_Controllers_Foo();
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment