We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原来tp6的时候,默认应用是blog,并绑定了子域名blog.
blog应用的路由文件 app\blog\route\blog.php
//博客内容页面路由 Route::get('show/:id', 'blog/index/show') ->pattern(['id' => '\d+']);
原来访问路径 blog域名/show/1.html 是可以访问的
现在升级到tp8.1后,会404 controller not exists:app\blog\controller\blog\Index
controller not exists:app\blog\controller\blog\Index
必须把路由要改成,这样才能访问.
//博客内容页面路由 Route::get('show/:id', 'index/show') ->pattern(['id' => '\d+']);
请问是都要这样改吗? 还是我哪里设置不对?
The text was updated successfully, but these errors were encountered:
后面这种应该才是规范的,因为应用之间应该是相对独立的,所以没必要带应用名
Sorry, something went wrong.
原来如此,那可能是我开始就用错误的方式跑起来了.
谢谢.
No branches or pull requests
原来tp6的时候,默认应用是blog,并绑定了子域名blog.
blog应用的路由文件
app\blog\route\blog.php
原来访问路径
blog域名/show/1.html 是可以访问的
现在升级到tp8.1后,会404
controller not exists:app\blog\controller\blog\Index
必须把路由要改成,这样才能访问.
请问是都要这样改吗? 还是我哪里设置不对?
The text was updated successfully, but these errors were encountered: