ThinkPHP 6.0 using notes

1, the single multi-application mode and the switching mode of application 

Application of single-mode and multi-application mode switch parameters in config / app.php, a parameter called 'auto_multi_app', value of true multi-application mode, a single application to false mode.

Single-mode application, without having to access the routing module name: http: // domain / controller name / method names; multi-application mode, access routes required module name: HTTP: // domain / module / controller name / method name .

If two modules the app (eg: index and admin), and at single mode applications. Effective route: HTTP: // domain name / index / name of the controller / method names; invalid route: HTTP: // domain name / admin / controller name / method name.

Guess you like

Origin www.cnblogs.com/homecat805/p/11100891.html