最新版thinkphp与think-captcha报错的问题解决

浏览:11287 发布日期:2017/09/28 分类:技术分享 关键字: thinkphp5,验证码报错
如果用composer下载thinkphp,然后用composer下载think-captcha,那么,就会报错。
错误为:
Fatal error: Class 'Route' not found in C:\wamp64\www\think\vendor\topthink\think-captcha\src\helper.php on line 12更改起来也是非常简单的
原因是:Route和Validate类应用路径错误,将所有的类前面加\think\即可\think\Route::get\think\Validate::extend
最佳答案
评论( 相关
后面还有条评论,点击查看>>