本文整理汇总了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'));
}