コード例 #1
0
ファイル: SimpleRouter.php プロジェクト: rendix2/QW_MVS
 function __construct($urlName)
 {
     parent::__construct();
     if (isset(Get::get($urlName))) {
         require "./QW/Controllers/" . Get::get($urlName) . ".php";
     } else {
         throw new IllegalArgumentException();
     }
 }
コード例 #2
0
ファイル: Bootstrap.php プロジェクト: rendix2/QW_MVS
 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
ファイル: BetterBootstrap.php プロジェクト: rendix2/QW_MVS
 public function __construct($urlDelimiter = Config::URL_DELIMITER)
 {
     $this->{$urlDelimiter} = $urlDelimiter;
     $this->enabledRoutes = [];
     parent::__construct();
 }