问题原因

没有引入视图模块

解决方案

在项目根目录下执行composer require topthink/think-view
文章目录