Esempio n. 1
0
 public function __construct()
 {
     global $argv;
     if (isset($argv[1]) && $argv[1]) {
         if (preg_match('/request_uri/', $argv[1])) {
             $uri = substr($argv[1], 12);
         } else {
             echo 'be sure params is right';
             exit;
         }
     } else {
         echo 'lack of params';
         exit;
     }
     if (isset($argv[2])) {
         $_GET = $argv[2];
     }
     parent::__construct($uri);
 }
Esempio n. 2
0
 public function __construct()
 {
     $requestUri = trim(str_replace('index.php', '', $_SERVER['REQUEST_URI']), '/');
     parent::__construct($requestUri);
 }
Esempio n. 3
0
 public static function getModule()
 {
     return Route::getModule();
 }