TP6 安裝後報錯Driver [Think] not supported.
阿新 • • 發佈:2021-07-30
#0 [0]InvalidArgumentExceptioninManager.php line 104
Driver [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
- {
Call Stack (摺疊)
- inManager.php line 104
- atManager->resolveClass('Think') inManager.php line 137
- atManager->createDriver('Think') inManager.php line 66
- atManager->getDriver('Think') inManager.php line 56
- atManager->driver('Think') inView.php line 46
- atView->engine() inView.php line 90
- atView->think\{closure}() inView.php line 126
- atView->getContent(object(Closure)) inView.php line 91
- atView->fetch('index/index', []) inView.php line 92
- atView->output('index/index') inResponse.php line 385
- atResponse->getContent() inTraceDebug.php line 75
- atTraceDebug->handle(object(Request),object(Closure))
- at call_user_func([object(TraceDebug), 'handle'],object(Request),object(Closure)) inMiddleware.php line 142
- atMiddleware->think\{closure}(object(Request),object(Closure)) inPipeline.php line 85
- atPipeline->think\{closure}(object(Request)) inPipeline.php line 66
- atPipeline->then(object(Closure)) inHttp.php line 207
- atHttp->runWithRequest(object(Request)) inHttp.php line 170
- atHttp->run() inindex.php line 20
composer require topthink/think-view
文章來源:劉俊濤的部落格 歡迎關注公眾號、留言、評論,一起學習。
__________________________________________________________________________________
若有幫助到您,歡迎點選推薦,您的支援是對我堅持最好的肯定(*^_^*)
耶和華是我的牧者,我必不至缺乏。