Skip to content

Instantly share code, notes, and snippets.

@danteay
Created March 13, 2019 19:53
Show Gist options
  • Save danteay/27b39939471079f2a79a7504ac0eb6bd to your computer and use it in GitHub Desktop.
Save danteay/27b39939471079f2a79a7504ac0eb6bd to your computer and use it in GitHub Desktop.
config twig for slim 3
<?php
// Renderer settings
return [
'settigns' => [
'renderer' => [
'template_path' => __DIR__ . '/views',
],
// twig view settings
'twig' => [
'cache' => __DIR__ . '/views/cache',
'auto_reload' => true
],
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment