Cambios a documentos
This commit is contained in:
@ -4,6 +4,7 @@ namespace ProVM\NotariaRaby\Common\Controller\Web;
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Slim\Views\Blade as View;
|
||||
use Carbon\Carbon;
|
||||
use ProVM\Common\Service\Filemanager;
|
||||
|
||||
class Notaria {
|
||||
@ -12,6 +13,12 @@ class Notaria {
|
||||
$equipos = $filemanager->folder('data')->load($filename);
|
||||
$filename = 'transparencia.yml';
|
||||
$transparencia = $filemanager->folder('data')->load($filename);
|
||||
return $view->render($response, 'notaria', compact('equipos', 'transparencia'));
|
||||
$months = (object) ['full' => [], 'short' => []];
|
||||
$m = Carbon::createFromDate(0, 1, 1);
|
||||
for ($i = 0; $i < 12; $i ++) {
|
||||
$months->full []= ucwords($m->copy()->addMonths($i)->locale('es_ES')->isoFormat('MMMM'));
|
||||
$months->short []= ucwords($m->copy()->addMonths($i)->locale('es_ES')->isoFormat('MMM'));
|
||||
}
|
||||
return $view->render($response, 'notaria', compact('equipos', 'transparencia', 'months'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user