2 require ('config.inc.php');
3 require (LIB_PATH
.'functions.inc.php');
5 $myRoute = new tsRouter ();
6 $myRoute->addRoute ('index', '', true);
7 $myRoute->addRoute ('habarnam', '/aventurile lui habarnam/i');
8 $myRoute->addRoute ('habarnam2', '/habarnam si orasul soarelui|orasul soarelui/i');
10 * REQUEST_URI : /Aventurile+Lui+Habarnam/Cum+a+devenit+Habarnam+muzicant
11 * 1. match pe req_uri : aventurile lui habarnam
14 * 2. match pe restul req_uri
16 //$to = ctrlFactory::getController ();
17 $to = $myRoute->getController ();
19 if ($to instanceof tsController
) {
22 $to = new tsControllerHtml();