本文整理匯總了PHP中ConfigHelper::CreateDir方法的典型用法代碼示例。如果您正苦於以下問題:PHP ConfigHelper::CreateDir方法的具體用法?PHP ConfigHelper::CreateDir怎麽用?PHP ConfigHelper::CreateDir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ConfigHelper
的用法示例。
在下文中一共展示了ConfigHelper::CreateDir方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Template
$oTemplate->Set('basename', $sBasename);
echo $oTemplate->Display();
exit;
}
$sUploadDir = ConfigHelper::GetAbsolutePath($sBasename . ConfigHelper::Get('/cache/upload_dir'));
$sSpriteDir = ConfigHelper::GetAbsolutePath($sBasename . ConfigHelper::Get('/cache/sprite_dir'));
$sTranslationsCacheDir = ConfigHelper::GetAbsolutePath($sBasename . ConfigHelper::Get('/cache/translations_dir'));
$sCssCacheDir = ConfigHelper::GetAbsolutePath($sBasename . ConfigHelper::Get('/cache/css_archive'));
$sJsCacheDir = ConfigHelper::GetAbsolutePath($sBasename . ConfigHelper::Get('/cache/js_archive'));
ConfigHelper::CreateDir($sUploadDir);
ConfigHelper::CreateDir($sSpriteDir);
ConfigHelper::CreateDir($sTranslationsCacheDir);
ConfigHelper::CreateDir($sCssCacheDir);
ConfigHelper::CreateDir($sJsCacheDir);
// This section is present for Project Fondue use only and can be safely removed */
if (ConfigHelper::Get('/cache/tla/dir')) {
$sTextLinkAdsDir = ConfigHelper::GetAbsolutePath($sBasename . ConfigHelper::Get('/cache/tla/dir'));
ConfigHelper::CreateDir($sTextLinkAdsDir);
ConfigHelper::CreateFile($sTextLinkAdsDir . '/' . ConfigHelper::Get('/cache/tla/file'));
}
// End section //
if (!is_writeable($sUploadDir) || !is_writeable($sSpriteDir) || !is_writeable($sTranslationsCacheDir) || !is_writeable($sCssCacheDir) || !is_writeable($sJsCacheDir)) {
$oTemplate = new Template('setup-permissions-error.php');
$oTemplate->Set('uploadDir', $sUploadDir);
$oTemplate->Set('spriteDir', $sSpriteDir);
$oTemplate->Set('translationsCacheDir', $sTranslationsCacheDir);
$oTemplate->Set('cssCacheDir', $sCssCacheDir);
$oTemplate->Set('jsCacheDir', $sJsCacheDir);
echo $oTemplate->Display();
exit;
}