예제 #1
0
 function __construct($urlName)
 {
     parent::__construct();
     if (isset(Get::get($urlName))) {
         require "./QW/Controllers/" . Get::get($urlName) . ".php";
     } else {
         throw new IllegalArgumentException();
     }
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     $this->setParams();
     try {
         if ($this->noUrl()) {
             return FALSE;
         }
         $this->loadController();
         $this->callControllerMethod();
     } catch (\Exception $e) {
         echo $e->getMessage();
     }
 }
예제 #3
0
 public function __construct($urlDelimiter = Config::URL_DELIMITER)
 {
     $this->{$urlDelimiter} = $urlDelimiter;
     $this->enabledRoutes = [];
     parent::__construct();
 }