我新建了模版 目录名为n2 在制作...
wuliao 发表于 2014-04-03 14:44
\core\lib\ext\te\TePfa.class.php
415 行添加
- if('THEME_PATH' == $name)
- {
- return TPL_PATH.($this->tplTheme ? D_S.$this->tplTheme : '');
- }
- if('__THEME__' == $name)
- {
- return __APP__.'/'.TPL_DIR.'/'.($this->tplTheme ? $this->tplTheme : '');
- }
610行左右
- /* 解析import标签中的常量 */
- private static function parse_teConstant($matches)
- {
- /* $matches[1] 是第一个括号中的子模式的匹配项 */
- if(defined($matches[1]))
- {
- return constant($matches[1]);
- }
- return null;
改为
- /* 解析import标签中的常量 */
- private function parse_teConstant($matches)
- {
- if('THEME_PATH' == $matches[1])
- {
- return TPL_PATH.($this->tplTheme ? D_S.$this->tplTheme : '');
- }
- if('__THEME__' == $matches[1])
- {
- return __APP__.'/'.TPL_DIR.'/'.($this->tplTheme ? $this->tplTheme : '');
- }
- /* $matches[1] 是第一个括号中的子模式的匹配项 */
- if(defined($matches[1]))
- {
- return constant($matches[1]);
- }
- return null;
- }