Exemplo n.º 1
0
 public static function setTempBasePath($path)
 {
     \Jelix\Core\App::setTempBasePath($path);
 }
 function initAppPaths($applicationDir)
 {
     $applicationDir = rtrim($applicationDir, '/');
     $applicationDir = rtrim($applicationDir, '\\');
     $appname = basename($applicationDir);
     $search = array('%appdir%', '%appname%');
     $replace = array($applicationDir, $appname);
     \Jelix\Core\App::initPaths($applicationDir . '/', str_replace($search, $replace, $this->layoutWwwPath), str_replace($search, $replace, $this->layoutVarPath), str_replace($search, $replace, $this->layoutLogPath), str_replace($search, $replace, $this->layoutConfigPath), str_replace($search, $replace, $this->layoutScriptsPath));
     \Jelix\Core\App::setTempBasePath(str_replace($search, $replace, $this->layoutTempPath));
 }