Exemplo n.º 1
0
 public function __construct()
 {
     $appPath = Days_Engine::appPath();
     if (0 == strcmp($appPath, self::$_appDir)) {
         return;
     }
     self::$_appDir = $appPath;
     if (DIRECTORY_SEPARATOR != substr(self::$_appDir, -1)) {
         self::$_appDir .= DIRECTORY_SEPARATOR;
     }
     self::$_templateDir = self::$_appDir . self::TEMPLATE_DIR;
     self::$_compileDir = self::$_appDir . self::COMPILE_DIR;
     self::$_cacheDir = self::$_appDir . self::CACHE_DIR;
     self::$_caching = Days_Config::load()->get('cache/lifetime', 0);
 }