Refactored project structure (Improvements).
This commit is contained in:
parent
c015d8c58b
commit
3b700f8d3c
5 changed files with 5 additions and 23 deletions
|
|
@ -26,12 +26,7 @@ if (!defined('RUNTIME_DIR')) {
|
|||
|
||||
require_once(ROOT_DIR . 'vendor/autoload.php');
|
||||
|
||||
// Load configuration if present:
|
||||
$conf = [];
|
||||
$conf['b8']['app']['namespace'] = 'PHPCensor';
|
||||
$conf['b8']['app']['default_controller'] = 'Home';
|
||||
|
||||
$config = new PHPCensor\Config($conf);
|
||||
$config = new PHPCensor\Config();
|
||||
|
||||
$configFile = APP_DIR . 'config.yml';
|
||||
if (file_exists($configFile)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue