Uncaught Error: Class “App\Controller\Wallet”

huangapple go评论110阅读模式
英文:

Uncaught Error: Class "App\Controller\Wallet"

问题

I got this error when I used Wallet Class in Hook.php!

PHP Fatal error: Uncaught Error: Class "App\Controller\Wallet" not found in C:\xampp\htdocs\Tel\hook.php:5
Stack trace:
#0 {main}
thrown in C:\xampp\htdocs\Tel\hook.php on line 5

英文:

this is my project Structure

Uncaught Error: Class “App\Controller\Wallet”

and this is my hook.php
Uncaught Error: Class “App\Controller\Wallet”

I got this error when I used Wallet Class in Hook.php!

> PHP Fatal error: Uncaught Error: Class "App\Controller\Wallet" not found in C:\xampp\htdocs\Tel\hook.php:5
Stack trace:
#0 {main}
thrown in C:\xampp\htdocs\Tel\hook.php on line 5

Uncaught Error: Class “App\Controller\Wallet”

答案1

得分: 1

You simply forgot to include vendor/autoload.php in your hook.php

require 'vendor/autoload.php';

英文:

You simply forgot to include vendor/autoload.php in your hook.php

require 'vendor/autoload.php';

huangapple
  • 本文由 发表于 2023年6月26日 19:21:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76556195.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定