本文整理汇总了PHP中iaUtil::makeDirCascade方法的典型用法代码示例。如果您正苦于以下问题:PHP iaUtil::makeDirCascade方法的具体用法?PHP iaUtil::makeDirCascade怎么用?PHP iaUtil::makeDirCascade使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iaUtil
的用法示例。
在下文中一共展示了iaUtil::makeDirCascade方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadSmarty
public function loadSmarty($force = false)
{
if (iaView::REQUEST_HTML == $this->getRequestType() || $force) {
$compileDir = IA_TMP . (iaCore::ACCESS_ADMIN == $this->iaCore->getAccessType() ? 'admin_' : 'front_') . $this->theme . IA_DS;
$this->iaCore->factory('util');
iaUtil::makeDirCascade(IA_TMP . 'smartycache' . IA_DS, 0777, true);
iaUtil::makeDirCascade($compileDir, 0777, true);
$this->iaSmarty = $this->iaCore->factory('smarty');
if (iaCore::ACCESS_ADMIN == $this->iaCore->getAccessType()) {
$this->iaSmarty->setTemplateDir(IA_ADMIN . 'templates' . IA_DS . $this->theme . IA_DS);
} else {
$this->iaSmarty->setTemplateDir(IA_HOME . 'templates' . IA_DS . $this->theme . IA_DS);
$this->iaSmarty->addTemplateDir(IA_HOME . 'templates' . IA_DS . 'common' . IA_DS);
}
Smarty::$_CHARSET = 'UTF-8';
$this->iaSmarty->setCompileDir($compileDir);
$this->iaSmarty->setCacheDir(IA_TMP . 'smartycache' . IA_DS);
$this->iaSmarty->setPluginsDir(array(IA_SMARTY . 'plugins', IA_SMARTY . 'intelli_plugins'));
$this->iaSmarty->force_compile = $this->iaCore->get('smarty_cache', false);
$this->iaSmarty->cache_modified_check = false;
$this->iaSmarty->debugging = false;
$this->iaSmarty->compile_check = true;
// @FIXME: please find a solution instead of suppressing the errors
$this->iaSmarty->muteExpectedErrors();
}
}