Beispiel #1
0
 /**
  * [checkRouting description]
  * @return [type] [description]
  */
 public function checkRouting()
 {
     $route = Routes::getRoutes();
     if (count($route) > 0) {
         extract($route);
         if (strtolower($this->controller) === strtolower($controller) and strtolower($this->method) === strtolower($method)) {
             $n = explode('/', $redirect);
             $this->controller = $n[0];
             $this->method = $n[1];
         }
     }
 }