作者共发了3篇帖子。 内容转换:不转换▼
 
点击 回复
236 2
Smarty安裝測試
一派护法 十九级
1楼 发表于:2015-11-4 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.
一派护法 十九级
2楼 发表于:2015-11-4 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();
一派护法 十九级
3楼 发表于:2015-11-4 10:24
DOCUMENT_ROOT的定義如下:
define('DOCUMENT_ROOT', str_replace('\\', '/', dirname(__DIR__)) . '/');

回复帖子

内容:
用户名: 您目前是匿名发表
验证码:
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:236 回复数:2
评论数: ?
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2015-11-4 10:24
 
©2010-2024 Arslanbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。