英文:
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
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
答案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';
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论