smallA framework, over 140 characters for twitter ;)

smallA framework, over 140 characters for twitter ;)

am 07.06.2009 18:51:30 von Rolando Santamaria Maso

This is a very small framework for PHP inspired by the framework of Fabien
Potencier (http://twitto.org/).


$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

Re: smallA framework, over 140 characters for twitter ;)

am 08.06.2009 15:47:48 von Daniel Brown

On Sun, Jun 7, 2009 at 12:51, Rolando Santamaria
Maso wrote:
> This is a very small framework for PHP inspired by the framework of Fabien
> Potencier (http://twitto.org/).

Awesome. As soon as we can throw security out the window and
listen to it splat on the sidewalk below, it looks like that might be
okay. ;-P

--

daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

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

Re: smallA framework, over 140 characters for twitter ;)

am 08.06.2009 16:24:51 von Andrew Ballard

On Mon, Jun 8, 2009 at 9:47 AM, Daniel Brown wrote:
> On Sun, Jun 7, 2009 at 12:51, Rolando Santamaria
> Maso wrote:
>> This is a very small framework for PHP inspired by the framework of Fabi=
en
>> Potencier (http://twitto.org/).
>
>    Awesome.  As soon as we can throw security out the wind=
ow and
> listen to it splat on the sidewalk below, it looks like that might be
> okay.  ;-P
>
> --
>

C'mon, Dan. Obviously you aren't aware of the first line of the
script, which was simply omitted by the OP:


require "magic_fairy_dust.php";

....



;-)

Andrew

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

Re: smallA framework, over 140 characters for twitter ;)

am 08.06.2009 16:28:03 von Daniel Brown

On Mon, Jun 8, 2009 at 10:24, Andrew Ballard wrote:
>
> C'mon, Dan. Obviously you aren't aware of the first line of the
> script, which was simply omitted by the OP:
>
> >
> require "magic_fairy_dust.php";

Good point. In all fairness, I don't know that they don't have
prepended includes on there as well.

--

daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

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