#0 [0]InvalidArgumentException in Manager.php line 104

Driver [Think] not supported.

1.
{

2.
if
($this->namespace
||
false
!== strpos($type,
'\\'))
{

3. $class =
false
!== strpos($type,
'\\')
? $type : $this->namespace
.
Str::studly($type);

4.
if
(class_exists($class))
{

5.
return $class;

6.
}

7.
}

8.
throw
new
InvalidArgumentException("Driver [$type] not supported.");

9.
}

10.
/**

11. * 获取驱动参数

12. * @param $name

13. * @return array

14. */

15.
protected
function resolveParams($name): array

16.
{

Call Stack (折叠)

  1. in Manager.php line 104
  2. at Manager->resolveClass('Think') in Manager.php line 137
  3. at Manager->createDriver('Think') in Manager.php line 66
  4. at Manager->getDriver('Think') in Manager.php line 56
  5. at Manager->driver('Think') in View.php line 46
  6. at View->engine() in View.php line 90
  7. at View->think\{closure}() in View.php line 126
  8. at View->getContent(object(Closure)) in View.php line 91
  9. at View->fetch('index/index', []) in View.php line 92
  10. at View->output('index/index') in Response.php line 385
  11. at Response->getContent() in TraceDebug.php line 75
  12. at TraceDebug->handle(object(Request),object(Closure))
  13. at call_user_func([object(TraceDebug), 'handle'],object(Request),object(Closure)) in Middleware.php line 142
  14. at Middleware->think\{closure}(object(Request),object(Closure)) in Pipeline.php line 85
  15. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  16. at Pipeline->then(object(Closure)) in Http.php line 207
  17. at Http->runWithRequest(object(Request)) in Http.php line 170
  18. at Http->run() in index.php line 20


TP6 安装后报错Driver [Think] not supported._公众号

composer require topthink/think-view

__________________________________________________________________________________

若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)

你要保守你心,胜过保守一切。

作者:刘俊涛的博客​​