安装多应用模式部署
安装多应用模块扩展:think-multi-app,
composer require topthink/think-multi-app
特别注意:安装的时候一定要是在项目的根目录下安装,不然安装了以后也是用不了报单应用(app\controller\index不存在)的问题,
如果出现“Content-Length mismatch, received xxxx bytes out of the expected xxxx”错误,则需要更换composer镜像即可,使用以下命令
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/然后在安装think-multi-app
视图安装:composer require topthink/think-view
赞 (0)