Changeset 2530
- Timestamp:
- 04/18/2008 02:38:38 AM (7 months ago)
- Location:
- trunk/modules/smarty
- Files:
-
- 3 modified
-
config/smarty.php (modified) (1 diff)
-
libraries/MY_Controller.php (modified) (2 diffs)
-
libraries/MY_Smarty.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/smarty/config/smarty.php
r2480 r2530 5 5 'integration' => TRUE, // Enable/Disable Smarty integration 6 6 'templates_ext' => 'tpl', 7 'cache_path' => APPPATH.'cache/',8 7 'global_templates_path' => APPPATH.'views/', 8 'cache_path' => APPPATH.'cache/smarty_cache/', 9 'compile_path' => APPPATH.'cache/smarty_compile/', 10 'configs_path' => APPPATH.'views/smarty_configs/', 11 'plugins_path' => APPPATH.'views/smarty_plugins/', 12 'debug_tpl' => APPPATH.'views/debug.tpl', 9 13 'debugging_ctrl' => FALSE, 10 14 'debugging' => TRUE, -
trunk/modules/smarty/libraries/MY_Controller.php
r2480 r2530 7 7 parent::__construct(); 8 8 9 if (Config::item('smarty.integration') == TRUE) { 9 if (Config::item('smarty.integration') == TRUE) 10 { 10 11 $this->MY_Smarty = new MY_Smarty; 11 12 } … … 22 23 if (is_array($vars) AND count($vars) > 0) 23 24 { 24 foreach ($vars as $key => $val)25 foreach ($vars AS $key => $val) 25 26 { 26 27 $this->MY_Smarty->assign($key, $val); -
trunk/modules/smarty/libraries/MY_Smarty.php
r2480 r2530 14 14 parent::Smarty(); 15 15 16 $this->cache_dir = Config::item('smarty.cache_path') . 'smarty_cache/';17 $this->compile_dir = Config::item('smarty.c ache_path') . 'smarty_compile/';18 $this->config_dir = Config::item('smarty. global_templates_path') . 'smarty_configs/';19 $this->plugins_dir[] = Config::item('smarty. global_templates_path') . 'smarty_plugins/';20 $this->debug_tpl = Config::item('smarty. global_templates_path') . 'debug.tpl';16 $this->cache_dir = Config::item('smarty.cache_path'); 17 $this->compile_dir = Config::item('smarty.compile_path'); 18 $this->config_dir = Config::item('smarty.configs_path'); 19 $this->plugins_dir[] = Config::item('smarty.plugins_path'); 20 $this->debug_tpl = Config::item('smarty.debug_tpl'); 21 21 $this->debugging_ctrl = Config::item('smarty.debugging_ctrl'); 22 22 $this->debugging = Config::item('smarty.debugging'); … … 26 26 27 27 // check if cache directory is exists 28 $this->checkDirectory( Config::item('smarty.cache_path'));28 $this->checkDirectory($this->cache_dir); 29 29 30 30 // check if smarty_compile directory is exists
