本文整理匯總了PHP中XoopsTpl::getCompileDir方法的典型用法代碼示例。如果您正苦於以下問題:PHP XoopsTpl::getCompileDir方法的具體用法?PHP XoopsTpl::getCompileDir怎麽用?PHP XoopsTpl::getCompileDir使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XoopsTpl
的用法示例。
在下文中一共展示了XoopsTpl::getCompileDir方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: test__construct
public function test__construct()
{
$xoops = \Xoops::getInstance();
$this->assertSame('{', $this->object->left_delimiter);
$this->assertSame('}', $this->object->right_delimiter);
$this->assertTrue(in_array(\XoopsBaseConfig::get('themes-path') . DIRECTORY_SEPARATOR, $this->object->getTemplateDir()));
$this->assertSame(\XoopsBaseConfig::get('var-path') . '/caches/smarty_cache' . DIRECTORY_SEPARATOR, $this->object->getCacheDir());
$this->assertSame(\XoopsBaseConfig::get('var-path') . '/caches/smarty_compile' . DIRECTORY_SEPARATOR, $this->object->getCompileDir());
$this->assertSame($xoops->getConfig('theme_fromfile') == 1, $this->object->compile_check);
$this->assertSame(array(\XoopsBaseConfig::get('lib-path') . '/smarty/xoops_plugins' . DIRECTORY_SEPARATOR, SMARTY_DIR . 'plugins' . DS), $this->object->plugins_dir);
$this->assertSame(\XoopsBaseConfig::get('url'), $this->object->getTemplateVars('xoops_url'));
$this->assertSame(\XoopsBaseConfig::get('root-path'), $this->object->getTemplateVars('xoops_rootpath'));
$this->assertSame(\XoopsLocale::getLangCode(), $this->object->getTemplateVars('xoops_langcode'));
$this->assertSame(\XoopsLocale::getCharset(), $this->object->getTemplateVars('xoops_charset'));
$this->assertSame(\Xoops::VERSION, $this->object->getTemplateVars('xoops_version'));
$this->assertSame(\XoopsBaseConfig::get('uploads-url'), $this->object->getTemplateVars('xoops_upload_url'));
}