diff --git a/web/application/config.dist.php b/web/application/config.dist.php index 3d4ba6f..28c3e90 100644 --- a/web/application/config.dist.php +++ b/web/application/config.dist.php @@ -12,4 +12,6 @@ $config["ACCEPTED_IPS"] = ["127.0.0.1", "::1"]; $config["REDIRECT_URI"] = ""; +$config["URL"] = ""; + return $config; \ No newline at end of file diff --git a/web/application/controllers/base.php b/web/application/controllers/base.php index 8ebd738..31d40cf 100644 --- a/web/application/controllers/base.php +++ b/web/application/controllers/base.php @@ -20,7 +20,7 @@ abstract class base extends \system\engine\HF_Controller { } protected function loadRender($template, $parameters=array()) { - $newParameters = array_merge($parameters, ["user" => $this->user]); + $newParameters = array_merge($parameters, ["config" => $this->config, "user" => $this->user]); return parent::loadRender($template, $newParameters); } diff --git a/web/application/views/base.html b/web/application/views/base.html index 60b6e7a..e07de46 100644 --- a/web/application/views/base.html +++ b/web/application/views/base.html @@ -3,6 +3,7 @@ + @@ -19,6 +20,7 @@ + {{title}}