解决Redefining already defined constructor for class times

ECSHOP错误Redefining already defined constructor for class如何解决

把代码1 放到代码2后面就解决错误了 全文:http://www.cnblogs.com/ecshop/p/3818449.html

 

附:

第一种方法治标,加一句error_reporting(E_ERROR | E_WARNING | E_PARSE);

第二种方法治本:

删除构造函数,比如times类的话就删除

  1. function times($action = '')
  2. {
  3. $this->__construct($action);
  4. }
  5. 全文:http://www.hankcs.com/program/redefining-already-defined-constructor-for-class-times.html
posted @ 2016-11-16 11:13  stma  阅读(467)  评论(0)    收藏  举报