Простой загрузчик настроек

This commit is contained in:
Фёдор Подлеснов 2016-07-18 15:01:02 +03:00
parent b6e91836dd
commit 486ba9f662
2 changed files with 9 additions and 2 deletions

9
core/config.php Normal file
View file

@ -0,0 +1,9 @@
<?php
function loadConfig($filename) {
if (file_exists($filename)) {
include($filename);
return $settings;
}
throw new Exception("config $filename not found");
}

View file

@ -14,5 +14,3 @@ class Database
return $database;
}
}
?>