mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-15 18:39:20 +02:00
Add db variable to twig
This commit is contained in:
parent
7e4d28c648
commit
5ed1aec28e
@ -122,6 +122,8 @@ try {
|
|||||||
|
|
||||||
$eloquentConnection = $capsule->getConnection();
|
$eloquentConnection = $capsule->getConnection();
|
||||||
|
|
||||||
|
$twig->addGlobal('db', $db);
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
if(isset($cache) && $cache->enabled()) {
|
if(isset($cache) && $cache->enabled()) {
|
||||||
$cache->delete('config_lua');
|
$cache->delete('config_lua');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user