Settings | Sign in | Sign up

There are currently 3 posts.

Smarty安装测试

Floor 1 巨大八爪鱼 11/4/15 10:23
Smarty Installation test...
Testing template directory...
D:\Codes\PHP\test\learnsmarty\templates is OK.
Testing compile directory...
D:\Codes\PHP\test\learnsmarty\templates\templates_c is OK.
Testing plugins directory...
D:\Codes\PHP\test\learnsmarty\includes\library\Smarty\plugins is OK.
Testing cache directory...
D:\Codes\PHP\test\learnsmarty\templates\cache is OK.
Testing configs directory...
D:\Codes\PHP\test\learnsmarty\templates\config is OK.
Testing sysplugin files...
... OK
Testing plugin files...
... OK
Tests complete.
Floor 2 巨大八爪鱼 11/4/15 10:24
PHP代码:
        $installPath = DOCUMENT_ROOT . 'includes/library/Smarty';
        $this->setTemplateDir(DOCUMENT_ROOT . 'templates');
        $this->setCompileDir(DOCUMENT_ROOT . 'templates/templates_c');
        $this->setPluginsDir("$installPath/plugins");
        $this->setCacheDir(DOCUMENT_ROOT . 'templates/cache');
        $this->setConfigDir(DOCUMENT_ROOT . 'templates/config');
        $this->testInstall();
Floor 3 巨大八爪鱼 11/4/15 10:24
DOCUMENT_ROOT的定义如下:
define('DOCUMENT_ROOT', str_replace('\\', '/', dirname(__DIR__)) . '/');

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.