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!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to