调用失败啊 大神就命
调用user出现语法解析错误。。。。原文如下
[0] ThrowableError in User.php line 16
语法解析错误: syntax error, unexpected end of file
*/ namespace app\common\contoller; class User { public function showName($name='') { return "my name is {$name}; } }
Call Stack
at think\__include_file('C:\www\app\common\co...') in Loader.php line 132
at Loader::autoload('app\common\controlle...')
at spl_autoload_call('app\common\controlle...') in User.php line 10
at include('C:\www\app\index\con...') in Loader.php line 411
at think\__include_file('C:\www\app\index\con...') in Loader.php line 132
at Loader::autoload('app\index\controller...')
at spl_autoload_call('app\index\controller...')
at class_exists('app\index\controller...') in App.php line 724
at App->controller('user', 'controller', false, 'Error') in Module.php line 95
at Module->exec() in Dispatch.php line 168
at Dispatch->run() in App.php line 432
at App->think\{closure}(object(Request), object(Closure), null)
at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
at Middleware->think\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
at Middleware->dispatch(object(Request)) in App.php line 435
at App->run() in index.php line 21