This commit is contained in:
2020-02-27 23:02:24 -03:00
parent 467fab3716
commit 942308a2ca
17 changed files with 71 additions and 51 deletions

View File

@ -5,12 +5,14 @@ $folder = implode(DIRECTORY_SEPARATOR, [
__DIR__,
'web'
]);
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
if (file_exists($folder)) {
$files = new DirectoryIterator($folder);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
include_once $file->getRealPath();
}
$app->get('/', Home::class);