예제 #1
0
 public static function loadTpl($baseDir)
 {
     require_once FRAMEWORK_LIB_ABS . 'Smarty/Smarty.class.php';
     self::$tplObj = new Smarty();
     self::getTpl()->disableSecurity();
     self::getTpl()->template_dir = $baseDir;
     self::getTpl()->config_dir = $baseDir . 'config/';
     self::getTpl()->cache_dir = $baseDir . 'cache/';
     self::getTpl()->compile_dir = $baseDir . 'compiled/';
     self::getTpl()->assign('FRAMEWORK_DIR', FRAMEWORK_DIR);
     self::getTpl()->assign('FRAMEWORK_LIB', FRAMEWORK_LIB);
     self::getTpl()->assign('FRAMEWORK_MODUL', FRAMEWORK_MODUL);
     self::getTpl()->assign('FRAMEWORK_TPL', FRAMEWORK_TPL);
 }