smallA framework, over 140 characters for twitter ;)

From: Date: Sun, 07 Jun 2009 16:51:30 +0000
Subject: smallA framework, over 140 characters for twitter ;)
Groups: php.general 
Request: Send a blank email to php-general+get-293709@lists.php.net to get a copy of this message
This is a very small framework for PHP inspired by the framework of Fabien Potencier (http://twitto.org/). <?php $c = $_GET['c']; //getting controller name $a = $_GET['a']; //getting action name if (@include_once('c/'.$c.'.php')) { $c = new $c; //controller instance if (method_exists($c,$a)) $c->$a(); //invoking the action else die("A !f"); //controller not found } else die("C !f"); //action not found ?> $c=$_GET['c'];$a=$_GET['a'];if(@include_once('c/'.$c.'.php')){$c=new$c;if(method_exists($c,$a))$c->$a();else die("A !f");}else die("C !f"); http://twitter.com/kyberneees Greetings!!!

« previous php.general (#293709) next »