1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-09 15:47:09 +02:00

Version 1.2.0 Introducing a Basic Content Editor

This commit is contained in:
Sebastian
2018-06-25 18:04:32 +02:00
parent 9286cfd884
commit cfc8128161
34 changed files with 560 additions and 100 deletions

View File

@@ -152,7 +152,7 @@ $container['view'] = function ($container)
$path = array($container->get('settings')['themePath'], $container->get('settings')['authorPath']);
$view = new \Slim\Views\Twig( $path, [
'cache' => $container->get('settings')['cache'] ? $container->get('settings')['cachePath'] : false,
'cache' => false,
'autoescape' => false,
'debug' => true
]);
@@ -164,7 +164,8 @@ $container['view'] = function ($container)
$view->addExtension(new Typemill\Extensions\TwigUserExtension());
/* use {{ base_url() }} in twig templates */
$view['base_url'] = $container['request']->getUri()->getBaseUrl();
$view['base_url'] = $container['request']->getUri()->getBaseUrl();
$view['current_url'] = $container['request']->getUri()->getPath();
/* if session route, add flash messages and csrf-protection */
if($container['flash'])