smarttemplate 的一个BUG

看清楚了,是SmartTemplate,不是Smarty Template

在一页中建立一个以上的实例后,第一个以后的模板不会被正确解析。

解法办法

File: class.smarttemplate.php
找到:
unset ($_top);
换成:
unset ($GLOBALS[_top]);

搞定..

Comments 8

  1. sunboat wrote:

    smartphp里的东西看上去很不错的样子。。

    Posted 01 Jan 2004 at 12:18 pm
  2. avenger wrote:

    用起来也不错。呵呵。

    Posted 05 Feb 2004 at 11:13 am
  3. milkliker wrote:

    据说速度比Smarty快很多……

    Posted 29 Feb 2004 at 2:42 pm
  4. avenger wrote:

    推荐没有用过的朋友都用用吧。偶发现 smarttemplate 越用越上手了。呵呵。

    Posted 04 Mar 2004 at 10:16 pm
  5. nullfox wrote:

    我刚开始看SmartTP.这个bug有没有报告官方呢?

    Posted 16 Apr 2004 at 5:33 pm
  6. libk wrote:

    想下载个试试

    但是http://www.smartphp.net这个连接好像失效了

    avenger 能不能发一个smarttemplate到我邮箱里[email protected]

    先谢谢了

    Posted 27 Aug 2004 at 2:10 pm
  7. blindlf wrote:

    yes/ 不知道
    Delete Global Content Array in order to allow multiple use of SmartTemplate class in one script 是什么意思,好像他们已经发现这个问题了.

    老外真奇怪哦.

    Posted 02 Mar 2005 at 4:43 pm
  8. 1983s wrote:

    和smarty比哪个更好用?

    想找一个能负荷更多流量的。。

    Posted 20 May 2005 at 5:08 pm

Post a Comment

Your email is never published nor shared. Required fields are marked *