function initpath() { $array['tpl_mainnavi'] = realpath(dirname(__FILE__)) . '/../Smarty/templates/frontparts/mainnavi.tpl'; $objDb = new SC_Helper_DB_Ex(); $array['tpl_root_id'] = $objDb->sfGetRootId(); $this->assignarray($array); }
function initpath() { global $SC_VIEW_PHP_DIR; $array['tpl_mainnavi'] = $SC_VIEW_PHP_DIR . '/../Smarty/templates/frontparts/mainnavi.tpl'; $objDb = new SC_Helper_DB_Ex(); $array['tpl_root_id'] = $objDb->sfGetRootId(); $this->assignarray($array); }