Add all code files from IDE
This commit is contained in:
25
source/helpers/ConfigHelper/class.Config.php
Normal file
25
source/helpers/ConfigHelper/class.Config.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
class Config
|
||||
{
|
||||
public $config;
|
||||
|
||||
// Load configuration and upload it to the main class elements
|
||||
public function __construct()
|
||||
{
|
||||
$ROOT = $_SERVER['DOCUMENT_ROOT'];
|
||||
$config = $ROOT . "/source/config.php";
|
||||
|
||||
$c = include($config);
|
||||
$this->config = $c;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function getConfig()
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user