From 9fb2a5b3efef0eefe9b9b2391d768d7fa7912289 Mon Sep 17 00:00:00 2001 From: habarnam Date: Wed, 25 Jun 2008 22:38:26 +0300 Subject: [PATCH] * cleaned h.org router stuff up from index --- index.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/index.php b/index.php index 79ff1d5..fa87162 100644 --- a/index.php +++ b/index.php @@ -4,16 +4,7 @@ require (LIB_PATH.'functions.inc.php'); ob_start(); $myRoute = new tsRouter (); $myRoute->addRoute ('index', '', true); -$myRoute->addRoute ('habarnam', '/aventurile lui habarnam/i'); -$myRoute->addRoute ('habarnam2', '/habarnam si orasul soarelui|orasul soarelui/i'); -/** - * REQUEST_URI : /Aventurile+Lui+Habarnam/Cum+a+devenit+Habarnam+muzicant - * 1. match pe req_uri : aventurile lui habarnam - * habarnam - * => to=habarnam - * 2. match pe restul req_uri - */ -//$to = ctrlFactory::getController (); + $to = $myRoute->getController (); //var_dump($to); if ($to instanceof tsController ) { -- 2.11.4.GIT