Merging autoload changes
commit
c2b3b234fa
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
spl_autoload_register(function ($className) {
|
||||
$file = dirname(__DIR__) . '\\' . $className . '.php';
|
||||
$file = str_replace('\\', DIRECTORY_SEPARATOR, $file);
|
||||
//echo $file;
|
||||
if (file_exists($file)) {
|
||||
include $file;
|
||||
}
|
||||
});
|
@ -1,7 +1,11 @@
|
||||
<?php
|
||||
|
||||
//load Composer Classes
|
||||
require '../vendor/autoload.php';
|
||||
//load Fipamo Classes
|
||||
require '../brain/_loader.php';
|
||||
|
||||
use brain\init\App;
|
||||
|
||||
//start app
|
||||
new App();
|
||||
|
Loading…
Reference in New Issue