thinkphp报错Call to a member function assign() on a non-object

原因是:控制器里面的构造函数没有继承父类

public function __construct() {

}

解决办法:

public function __construct() {
    parent::__construct();
}

猜你喜欢

转载自blog.csdn.net/lxjstudyit/article/details/60997856