/** * New Quickstart instance * * @param string $rootpath Path to system root */ public function __construct($rootpath) { $this->rootpath = realpath($rootpath); if ($this->rootpath === false) { trigger_error("Unable to start your app when root path is invalid"); } # Initialize constants $this->defineConstants(); $this->_loadRoutes(); self::$instance = $this; }