Auth, Login, Home, Venta->Listados->Precios
This commit is contained in:
23
app/setup/setups/views.php
Normal file
23
app/setup/setups/views.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
return [
|
||||
Incoviba\Common\Alias\View::class => function(ContainerInterface $container) {
|
||||
$folders = $container->get('folders');
|
||||
$global_variables = [
|
||||
'urls' => $container->get('urls'),
|
||||
'money_url' => '',
|
||||
'login' => $container->get(Incoviba\Service\Login::class),
|
||||
'format' => $container->get(Incoviba\Service\Format::class),
|
||||
];
|
||||
if ($global_variables['login']->isIn()) {
|
||||
$global_variables['user'] = $global_variables['login']->getUser();
|
||||
}
|
||||
return new Incoviba\Common\Alias\View(
|
||||
$folders->get('templates'),
|
||||
$folders->get('cache'),
|
||||
null,
|
||||
$global_variables
|
||||
);
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user