Changeset 2530 for trunk/modules/smarty/libraries
- Timestamp:
- 04/18/2008 02:38:38 AM (7 months ago)
- Location:
- trunk/modules/smarty/libraries
- Files:
-
- 2 modified
-
MY_Controller.php (modified) (2 diffs)
-
MY_Smarty.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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
