예제 #1
0
 /**
  * Starts handling the application
  * Uses HttpRequest::InternalPath as input
  */
 public function Start()
 {
     $Request = HttpRequest::InternalPath();
     if (substr($Request, 0, strlen(self::$StaticPrefix) + 1) == self::$StaticPrefix . "/") {
         return $this->StaticContent(substr($Request, strlen(self::$StaticPrefix) + 1));
     } else {
         $file = $this->MatchRoutes($Request);
         return $this->StartController($file);
     }
 }