ThinkPHP6.0出现Driver [Think] not supported错误,如下所示,这个问题新手很常见,就是忘记引入视图模块
只需要在项目根目录下执行composer require topthink/think-view即可
#0 [0]InvalidArgumentException in Manager.php line 104Driver [Think] not supported.{if ($this->namespace || false !== strpos($type, '\\')) {$class = false !== strpos($type, '\\') ? $type : $this->namespace . Str::studly($type);if (class_exists($class)) {return $class;}}throw new InvalidArgumentException("Driver [$type] not supported.");}/** * 获取驱动参数 * @param $name * @return array */protected function resolveParams($name): array{
本人喜欢php和python语言,欢迎加我微信jsjlaoliu共同交流。