zoukankan      html  css  js  c++  java
  • 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

     

     

     

    composer require topthink/think-view

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

    __________________________________________________________________________________

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

    耶和华是我的牧者,我必不至缺乏。
  • 相关阅读:
    HashMap原理
    高并发架构系列:MQ消息队列的12点核心原理总结
    大话程序员系列:一张图道尽程序员的出路
    java面试题
    SpringBoot框架的使用
    java开发定时任务执行时间
    OpenLayers 3 扩展插件收集
    Vue-cli webpack模板
    Spring的属性文件properties使用注意
    FullBg-网页图片背景自适应大小
  • 原文地址:https://www.cnblogs.com/lovebing/p/15080972.html
Copyright © 2011-2022 走看看