Call to undefined function app\index\controller\queryDatabase()
自己的报错
Call to undefined function app\index\controller\queryDatabase()
解决
在方法名queryDatabase()前添加$this->
参考文章
tp5本类调用自己写的方法出现调用未定义函数错误——致命错误: Call to undefined function app\index\controller\getToken()