#0 [0]InvalidArgumentException in Manager.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 (折叠)
- in Manager.php line 104
- at Manager->resolveClass(‘Think‘) in Manager.php line 137
- at Manager->createDriver(‘Think‘) in Manager.php line 66
- at Manager->getDriver(‘Think‘) in Manager.php line 56
- at Manager->driver(‘Think‘) in View.php line 46
- at View->engine() in View.php line 90
- at View->think\{closure}() in View.php line 126
- at View->getContent(object(Closure)) in View.php line 91
- at View->fetch(‘index/index‘, []) in View.php line 92
- at View->output(‘index/index‘) in Response.php line 385
- at Response->getContent() in TraceDebug.php line 75
- at TraceDebug->handle(object(Request), object(Closure))
- at call_user_func([object(TraceDebug), ‘handle‘], object(Request), object(Closure)) in Middleware.php line 142
- at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
- at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
- at Pipeline->then(object(Closure)) in Http.php line 207
- at Http->runWithRequest(object(Request)) in Http.php line 170
- at Http->run() in index.php line 20
composer require topthink/think-view
文章来源:刘俊涛的博客 欢迎关注公众号、留言、评论,一起学习。
__________________________________________________________________________________
若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)