最新回答 / Alexander博士
解决了,,因为子类的构造函数 会覆盖父类的构造函数,,于是在子类中声明构造函数的时候,需要在子类中继承父类的构造函数,以使父类的构造函数依然生效。代码:public function __construct($table1) { $this->table = $table1; parent::__construct(); //祸根就出在这里!!! }
2018-08-31
最赞回答 / secrethaha
一般的.htaccess规则不起作用了,需要把 RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 改成 RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] 重启apache即可。
2018-07-09