public function __construct(App $app) { $default_controller = ucfirst($app->getAppSettings("default_controller")); if (isset($_SERVER['PATH_INFO'])) { $this->url = $_SERVER['PATH_INFO']; } else { $this->url = (!is_null($default_controller) ? $default_controller : "Controller") . "/" . $app->getAppSettings("default_action"); } $this->setReferrer(); $this->setData(); $this->setPageParametter(); }