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);

View File

@ -0,0 +1,6 @@
<?php
use ProVM\NotariaRaby\Common\Controller\Web\Contacto;
$app->group('/contacto', function($app) {
$app->get('[/]', Contacto::class);
});

View File

@ -0,0 +1,6 @@
<?php
use ProVM\NotariaRaby\Common\Controller\Web\Notaria;
$app->group('/notaria', function($app) {
$app->get('[/]', Notaria::class);
});