#0 [0]InvalidArgumentException in Manager.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 (折叠)
- 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
__________________________________________________________________________________
若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)
你要保守你心,胜过保守一切。
作者:刘俊涛的博客