class Config { private $data = array(); function __construct() { $common_config = include $_SERVER['DOCUMENT_ROOT'].'/app/'.'config.common.php'; $db_config = include $_SERVER['DOCUMENT_ROOT'].'/app/'.'config.db.php'; $langs_config = include $_SERVER['DOCUMENT_ROOT'].'/app/'.'config.langs.php'; $common_config['db']=$db_config; $common_config['langs']=$langs_config; $this->data = $common_config; } function __get($name){ return isset($this->data[$name])?$this->data[$name]:null; } function __set($name,$value){ $this->data[$name] = $value; } }
Class "Config" not found (/home/evminov/public_html/core/App.php:11)
#0 /home/evminov/public_html/core/Singleton.php(12): App->__construct() #1 /home/evminov/public_html/core/Singleton.php(20): Singleton::getInstance() #2 /home/evminov/public_html/index.php(18): Singleton::gi() #3 {main}