TP6 安装后报错Driver [Think] not supported.

 

 

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

Driver [Think] not supported.

  1. {
  2.  
  3. if ($this->namespace || false !== strpos($type, ‘\\‘)) {
  4.  
  5. $class = false !== strpos($type, ‘\\‘) ? $type : $this->namespace . Str::studly($type);
  6.  
  7.  
  8.  
  9. if (class_exists($class)) {
  10.  
  11. return $class;
  12.  
  13. }
  14.  
  15. }
  16.  
  17.  
  18.  
  19. throw new InvalidArgumentException("Driver [$type] not supported.");
  20.  
  21. }
  22.  
  23.  
  24.  
  25. /**
  26.  
  27. * 获取驱动参数
  28.  
  29. * @param $name
  30.  
  31. * @return array
  32.  
  33. */
  34.  
  35. protected function resolveParams($name): array
  36.  
  37. {
  38.  

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

文章来源:刘俊涛的博客 欢迎关注公众号、留言、评论,一起学习。

__________________________________________________________________________________

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

TP6 安装后报错Driver [Think] not supported.

上一篇:DMHS部署(DM-DM)


下一篇:Vuex详解