Changeset 2191
- Timestamp:
- 2006/08/28 12:01:42 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 1 added
- 2 edited
-
data/class/SC_View.php (modified) (4 diffs)
-
html/install.inc (added)
-
html/require.php (modified) (1 diff)
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); -
temp/trunk/html/require.php
r2186 r2191 23 23 require_once($include_dir . "/../data/class/SC_Page.php"); 24 24 require_once($include_dir . "/../data/class/SC_Pdf.php"); 25 require_once( ROOT_DIR."data/include/page_layout.inc");25 require_once($include_dir . "/../data/include/page_layout.inc"); 26 26 27 27 ?>
Note: See TracChangeset
for help on using the changeset viewer.
