Index: /temp/trunk/html/require.php
===================================================================
--- /temp/trunk/html/require.php	(revision 2186)
+++ /temp/trunk/html/require.php	(revision 2191)
@@ -23,5 +23,5 @@
 require_once($include_dir . "/../data/class/SC_Page.php");
 require_once($include_dir . "/../data/class/SC_Pdf.php");
-require_once(ROOT_DIR."data/include/page_layout.inc");
+require_once($include_dir . "/../data/include/page_layout.inc");
 
 ?>
Index: /temp/trunk/data/class/SC_View.php
===================================================================
--- /temp/trunk/data/class/SC_View.php	(revision 2185)
+++ /temp/trunk/data/class/SC_View.php	(revision 2191)
@@ -1,5 +1,5 @@
 <?php
-$current_dir = realpath(dirname(__FILE__));
-require_once($current_dir . "/../module/Smarty/libs/Smarty.class.php");
+$SC_VIEW_PHP_DIR = realpath(dirname(__FILE__));
+require_once($SC_VIEW_PHP_DIR . "/../module/Smarty/libs/Smarty.class.php");
 
 class SC_View {
@@ -9,4 +9,6 @@
     // ¥³¥ó¥¹¥È¥é¥¯¥¿
     function SC_View() {
+		global $SC_VIEW_PHP_DIR;
+		
     	$this->_smarty = new Smarty;
 		$this->_smarty->left_delimiter = '<!--{';
@@ -27,5 +29,5 @@
 		$this->_smarty->register_function("sfRmDupSlash", "sfRmDupSlash");
 		$this->_smarty->register_function("sfCutString", "sfCutString");
-		$this->_smarty->plugins_dir=array("plugins", ROOT_DIR . "data/smarty_extends");
+		$this->_smarty->plugins_dir=array("plugins", $SC_VIEW_PHP_DIR . "/../data/smarty_extends");
 		$this->_smarty->register_function("sf_mb_convert_encoding","sf_mb_convert_encoding");
 		$this->_smarty->register_function("sf_mktime","sf_mktime");
@@ -87,5 +89,7 @@
 	/* ¥µ¥¤¥È½é´üÀßÄê */
 	function initpath() {
-		$array['tpl_mainnavi'] = ROOT_DIR . 'data/Smarty/templates/frontparts/mainnavi.tpl';
+		global $SC_VIEW_PHP_DIR;
+		
+		$array['tpl_mainnavi'] = $SC_VIEW_PHP_DIR . '/../data/Smarty/templates/frontparts/mainnavi.tpl';
 		$array['tpl_root_id'] = sfGetRootId();
 		$this->assignarray($array);
