Call to a member function fetch() on null
public function __construct(){ parent::__construct(); $this->userid = 1;}public function index(){ return $this->fetch();}大概率是 __construct()里面的parent这个东西没添加...