问题:
Thinkphp5报错:
|
1 |
Call to a member function fetch() on null |
解决:
需要在构造方法里添加继承父级构造方法
|
1 2 3 |
public function __construct(){ parent::__construct; } |
Thinkphp5报错:
|
1 |
Call to a member function fetch() on null |
需要在构造方法里添加继承父级构造方法
|
1 2 3 |
public function __construct(){ parent::__construct; } |
公众号
头条号