1. 程式人生 > 其它 >TP6 安裝後報錯Driver [Think] not supported.

TP6 安裝後報錯Driver [Think] not supported.

#0 [0]InvalidArgumentExceptioninManager.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. inManager.php line 104
  2. atManager->resolveClass('Think') inManager.php line 137
  3. atManager->createDriver('Think') inManager.php line 66
  4. atManager->getDriver('Think') inManager.php line 56
  5. atManager->driver('Think') inView.php line 46
  6. atView->engine() inView.php line 90
  7. atView->think\{closure}() inView.php line 126
  8. atView->getContent(object(Closure)) inView.php line 91
  9. atView->fetch('index/index', []) inView.php line 92
  10. atView->output('index/index') inResponse.php line 385
  11. atResponse->getContent() inTraceDebug.php line 75
  12. atTraceDebug->handle(object(Request),object(Closure))
  13. at call_user_func([object(TraceDebug), 'handle'],object(Request),object(Closure)) inMiddleware.php line 142
  14. atMiddleware->think\{closure}(object(Request),object(Closure)) inPipeline.php line 85
  15. atPipeline->think\{closure}(object(Request)) inPipeline.php line 66
  16. atPipeline->then(object(Closure)) inHttp.php line 207
  17. atHttp->runWithRequest(object(Request)) inHttp.php line 170
  18. atHttp->run() inindex.php line 20

composer require topthink/think-view

文章來源:劉俊濤的部落格 歡迎關注公眾號、留言、評論,一起學習。

__________________________________________________________________________________

若有幫助到您,歡迎點選推薦,您的支援是對我堅持最好的肯定(*^_^*)

耶和華是我的牧者,我必不至缺乏。