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