Files
This commit is contained in:
16
common/Controller/Base.php
Normal file
16
common/Controller/Base.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace Incoviba\UI\Common\Controller;
|
||||
|
||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
use Psr\Http\Message\ResponseInterface as Response;
|
||||
use Slim\Views\Blade as View;
|
||||
|
||||
class Base {
|
||||
public function __invoke(Request $request, Response $response, View $view) {
|
||||
$hoy = 0;
|
||||
$pendientes = 0;
|
||||
$dias = [];
|
||||
$cierres = [];
|
||||
return $view->render($response, 'home', compact('hoy', 'pendientes', 'dias', 'cierres'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user