smallA framework, over 140 characters for twitter ;)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux