Exemplo n.º 1
0
Arquivo: router.php Projeto: Minasu/wd
 public function call()
 {
     $ajax = False;
     $url = $_SERVER["REQUEST_URI"];
     if (split("/", $url)[2] == "request") {
         $url = str_replace("/manager/request", "", $url);
         $ajax = True;
     } else {
         $url = str_replace("/manager", "", $url);
     }
     if ($ajax == False) {
         core::register();
         header::IndexAction($this->twig);
         left::IndexAction($this->twig);
     }
     /*$module = $this->routes[$url];
     		$module["autoload"]::register();
     		$class = new $module["class"]();
     		$class->$_SERVER["REQUEST_METHOD"]();*/
     if ($ajax == False) {
         footer::IndexAction($this->twig);
     }
 }