Changeset 2191 for temp/trunk/data/class/SC_View.php
- Timestamp:
- 2006/08/28 12:01:42 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/class/SC_View.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_View.php
r2185 r2191 1 1 <?php 2 $ current_dir= realpath(dirname(__FILE__));3 require_once($ current_dir. "/../module/Smarty/libs/Smarty.class.php");2 $SC_VIEW_PHP_DIR = realpath(dirname(__FILE__)); 3 require_once($SC_VIEW_PHP_DIR . "/../module/Smarty/libs/Smarty.class.php"); 4 4 5 5 class SC_View { … … 9 9 // ¥³¥ó¥¹¥È¥é¥¯¥¿ 10 10 function SC_View() { 11 global $SC_VIEW_PHP_DIR; 12 11 13 $this->_smarty = new Smarty; 12 14 $this->_smarty->left_delimiter = '<!--{'; … … 27 29 $this->_smarty->register_function("sfRmDupSlash", "sfRmDupSlash"); 28 30 $this->_smarty->register_function("sfCutString", "sfCutString"); 29 $this->_smarty->plugins_dir=array("plugins", ROOT_DIR . "data/smarty_extends");31 $this->_smarty->plugins_dir=array("plugins", $SC_VIEW_PHP_DIR . "/../data/smarty_extends"); 30 32 $this->_smarty->register_function("sf_mb_convert_encoding","sf_mb_convert_encoding"); 31 33 $this->_smarty->register_function("sf_mktime","sf_mktime"); … … 87 89 /* ¥µ¥¤¥È½é´üÀßÄê */ 88 90 function initpath() { 89 $array['tpl_mainnavi'] = ROOT_DIR . 'data/Smarty/templates/frontparts/mainnavi.tpl'; 91 global $SC_VIEW_PHP_DIR; 92 93 $array['tpl_mainnavi'] = $SC_VIEW_PHP_DIR . '/../data/Smarty/templates/frontparts/mainnavi.tpl'; 90 94 $array['tpl_root_id'] = sfGetRootId(); 91 95 $this->assignarray($array);
Note: See TracChangeset
for help on using the changeset viewer.
