kevin's blog

  • 首页
  • 微语
    • Smarty3.0跟php的__autoload()有冲突

      当你发现__autoload()不好使,其实是
      Smarty3.0跟php的__autoload()有冲突
      见Smarty3.0 中的SMARTY2_BC_NOTES文件:
      --------------------------------------
      == Autoloader ==
      Smarty 3 does register its own autoloader with spl_autoload_register. If your code has 
      an existing __autoload function then this function must be explicitly registered on 
      the __autoload stack. See http://us3.php.net/manual/en/function.spl-autoload-register.php 
      for further details.
      --------------------------------------
      解决办法:
      “在包含了 smarty 的源文件后执行 spl_autoload_register(“__autoload”) 解决多种加载方式共存,这样 __autoload函数仍能执行。”
      « 金蝶财务软件技巧 | 如何删除购物流程中的商品包装和祝福贺卡»

      分类:smarty      日期:13 Nov 2013

      xielong 0 184 0
    • 日历

    • 存档

      • 2018年12月(2)
      • 2018年9月(1)
      • 2018年8月(1)
      • 2018年4月(2)
      • 2018年1月(2)
      • 2017年11月(1)
      • 2016年7月(1)
      • 2016年6月(1)
      • 2016年2月(3)
      • 2016年1月(5)
      • 2015年11月(2)
      • 2015年8月(1)
      • 2015年5月(2)
      • 2015年4月(1)
      • 2015年3月(9)
      • 2015年1月(1)
      • 2014年3月(1)
      • 2014年2月(3)
      • 2014年1月(1)
      • 2013年12月(7)
      • 2013年11月(9)
    • 最新评论

    • 链接

kevin's blog