模板视图 要使用 plates 请先修改 ,取消 Boot 类中的 注释: 你也可以使用自己习惯的模板引擎。 使用模板引擎请将模板文件放置在 文件夹中,例如 var/template/home.php: