Skip to content

Commit

Permalink
fixing config issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jheathco committed Jun 27, 2011
1 parent 3f00f05 commit 79b0476
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/kohana/twig.php
Expand Up @@ -25,7 +25,7 @@ public static function instance()
Kohana_Twig::$config = Kohana::config('twig');

// Create the the loader
$loader = new Twig_Loader_Filesystem(Kohana_Twig::$config->templates, Kohana_Twig::$config->cache, Kohana_Twig::$config->auto_reload);
$loader = new Twig_Loader_Filesystem(Kohana_Twig::$config->templates);

// Set up Twig
Kohana_Twig::$instance = new Twig_Environment($loader, Kohana_Twig::$config->environment);
Expand Down
7 changes: 5 additions & 2 deletions config/twig.php
Expand Up @@ -8,14 +8,17 @@
'trim_blocks' => FALSE,
'charset' => 'utf-8',
'base_template_class' => 'Twig_Template',
'cache' => APPPATH.'cache/twig',
'auto_reload' => TRUE,
'strict_variables' => FALSE,
'autoescape' => TRUE,
'optimizations' => -1,
),
'extensions' => array
(
// List extension class names
),
'cache' => APPPATH.'cache/twig',
'templates' => APPPATH.'views/twig',
'auto_reload' => TRUE,
'suffix' => '.html',
'context_object' => TRUE,
);

0 comments on commit 79b0476

Please sign in to comment.