anandkunal/ToroPHP — pull request #28 by Svish (2013-01-31 23:11:04+00:00)
Title: Optional parameter for passing in $path_info to Toro

The regular .htaccess for ToroPHP didn't work at my webhost so had to pass the path_info as a get parameter instead, like this:

RewriteRule .* index.php?toro_uri=/$0 [PT,L,QSA]

Toro of course doesn't know about that, so I figured it would be nice if you could optionally pass in your own path_info like this:

Toro::serve(array(
"/" => "Controller_Home",
), isset($_GET['toro_uri']) ? $_GET['toro_uri'] : NULL);

And with this change you can :)