Ignore:
Timestamp:
2006/08/28 12:01:42 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/class/SC_View.php

    r2185 r2191  
    11<?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__)); 
     3require_once($SC_VIEW_PHP_DIR . "/../module/Smarty/libs/Smarty.class.php"); 
    44 
    55class SC_View { 
     
    99    // ¥³¥ó¥¹¥È¥é¥¯¥¿ 
    1010    function SC_View() { 
     11        global $SC_VIEW_PHP_DIR; 
     12         
    1113        $this->_smarty = new Smarty; 
    1214        $this->_smarty->left_delimiter = '<!--{'; 
     
    2729        $this->_smarty->register_function("sfRmDupSlash", "sfRmDupSlash"); 
    2830        $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"); 
    3032        $this->_smarty->register_function("sf_mb_convert_encoding","sf_mb_convert_encoding"); 
    3133        $this->_smarty->register_function("sf_mktime","sf_mktime"); 
     
    8789    /* ¥µ¥¤¥È½é´üÀßÄê */ 
    8890    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'; 
    9094        $array['tpl_root_id'] = sfGetRootId(); 
    9195        $this->assignarray($array); 
Note: See TracChangeset for help on using the changeset viewer.