Example #1
0
 function __construct(Request $request)
 {
     global $CONFIG;
     $this->routes = $CONFIG['ROUTES'];
     $this->uriParts = $request->getUrlParts();
     $this->currentRoute = null;
     $this->apacheRewriteMode = 0;
     if (count($this->uriParts) > 0) {
         if ($this->uriParts[1] == 'index.php') {
             $this->apacheRewriteMode = 1;
         }
     }
 }