目前共有3篇帖子。
字體大小:較小 - 100% (默認)  內容轉換:不轉換
 
點擊 回復
956 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)
本帖信息
點擊數:956 回複數:2
作者:巨大八爪鱼
最後回覆:巨大八爪鱼
最後回復時間:2015-11-4 10:24
公告板