Skip to content

Instantly share code, notes, and snippets.

@philsturgeon
Created December 15, 2009 15:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philsturgeon/257025 to your computer and use it in GitHub Desktop.
Save philsturgeon/257025 to your computer and use it in GitHub Desktop.
<?php
$g=$_GET;$c=@$g['c']?$g['c']:'Home';
if(!@include"c/$c.php")die('fail');
$m=method_exists($c,$m=@$g['m'])?$m:'index';
$o=new$c();$o->$m($g);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment