因为年前折腾过6.0.1,多应用也是折腾了好一会。
1、默认的controller目录删除了
2、命名空间路径,目录,百分百不会出错(6.0.1对照着复制,审计级别)
3、又试了这些不痛不痒的配置
'auto_multi_app' => true,
// 开启应用快速访问
'app_express' => true,
// 默认应用
'default_app' => 'home',
这些除了 default_app 需要修改,其他两个配置项我之前在6.0.1根本不需要用配置都可以正常多应用模式league/flysystem 1.0.46 Filesystem abstraction: Many filesystems, one API.
league/flysystem-cached-adapter 1.0.9 An adapter decorator to enable meta-data caching.
opis/closure 3.5.1 A library that can be used to serialize closures (anonymous functions) and arbitrary objects.
psr/cache 1.0.1 Common interface for caching libraries
psr/container 1.0.0 Common Container Interface (PHP FIG PSR-11)
psr/log 1.1.2 Common interface for logging libraries
psr/simple-cache 1.0.1 Common interfaces for simple caching
symfony/polyfill-mbstring v1.14.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72 v1.14.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/var-dumper v4.4.5 Symfony mechanism for exploring and dumping PHP variables
topthink/framework v6.0.2 The ThinkPHP Framework.
topthink/think-helper v3.1.3 The ThinkPHP6 Helper Package
topthink/think-multi-app v1.0.12 thinkphp6 multi app support
topthink/think-orm v2.0.31 think orm
topthink/think-trace v1.2 thinkphp debug trace最终,在年前的6.0.1项目更新到6.0.2之后,多应用也是正常。
多应用压根应该就没有跑起来
控制器不存在:app\controller\Index最终解决方法,用回年前的项目6.0.1升级到6.0.2使用了
不折腾不香嘛 最佳答案