Skip to content

Commit

Permalink
Merge pull request #48 from bakert/smarty-plugins
Browse files Browse the repository at this point in the history
Add support for the plugins_dir setting in Smarty.
  • Loading branch information
frankdejonge committed Jul 1, 2012
2 parents 1d6aff7 + 50d794c commit 25efa79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/view/smarty.php
Expand Up @@ -59,6 +59,8 @@ public static function parser()
static::$_parser->compile_dir = \Config::get('parser.View_Smarty.environment.compile_dir', APPPATH.'tmp'.DS.'Smarty'.DS.'templates_c'.DS);
static::$_parser->config_dir = \Config::get('parser.View_Smarty.environment.config_dir', APPPATH.'tmp'.DS.'Smarty'.DS.'configs'.DS);
static::$_parser->cache_dir = \Config::get('parser.View_Smarty.environment.cache_dir', APPPATH.'cache'.DS.'Smarty'.DS);
$plugins_dir = \Config::get('parser.View_Smarty.environment.plugins_dir', array());
static::$_parser->addPluginsDir($plugins_dir);

static::$_parser->caching = \Config::get('parser.View_Smarty.environment.caching', false);
static::$_parser->cache_lifetime = \Config::get('parser.View_Smarty.environment.cache_lifetime', 0);
Expand Down
1 change: 1 addition & 0 deletions config/parser.php
Expand Up @@ -138,6 +138,7 @@
'compile_dir' => APPPATH.'tmp'.DS.'Smarty'.DS.'templates_c'.DS,
'config_dir' => APPPATH.'tmp'.DS.'Smarty'.DS.'configs'.DS,
'cache_dir' => APPPATH.'cache'.DS.'Smarty'.DS,
'plugins_dir' => array(),
'caching' => false,
'cache_lifetime' => 0,
'force_compile' => false,
Expand Down

0 comments on commit 25efa79

Please sign in to comment.