We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df125b commit e4d1432Copy full SHA for e4d1432
system/core/controller.php
@@ -16,6 +16,7 @@ class Controller extends Router
16
*/
17
public function route()
18
{
19
+ Globals::init();
20
$app = Globals::app();
21
$controller = Globals::controller();
22
if ($app == null) $app = 'init';
system/core/globals.php
@@ -71,7 +71,7 @@ class Globals extends DataStore
71
/**
72
* Constructs the object setting its properties.
73
74
- public function init()
+ public static function init()
75
76
self::$filePath = Config::$filePath;
77
self::$webPath = Config::$webPath;
0 commit comments