digitas/pebble — Issue #13: Create a router to generate
Author: laupiFrpar
Created: 2012-01-20 14:57:40+00:00
State: open

This class may have:

* A list of routes with setter and getter
* Generation method to generate a relative URL by default or absolute URL with the base (index.php, index_dev.php or nothing)

Example:

$router->generate('homepage'); // must generate /homepage if the environment is "prod" or /index_dev.php/homepage if the environment is "dev"
$router->generate('homepage', true); // must generate http://localhost/homepage if the environment is "prod" or http://localhost//index_dev.php/homepage if the environment is "dev"