設置 | 登錄 | 註冊

作者共發了3篇帖子。

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__)) . '/');

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
©2010-2025 Purasbar Ver3.0 [手機版] [桌面版]
除非另有聲明,本站採用知識共享署名-相同方式共享 3.0 Unported許可協議進行許可。