Route not found: GET http://127.0.0.1:8000/entity name/
P粉587780103
P粉587780103 2024-02-25 20:14:34
0
1
460

I have used make:crud to do CRUD for every entity in the database, but when I write http://127.0.0.1:8000/ to control entity addition, deletion... it shows me this message "No route found for "GET http://127.0.0.1:8000/demandededevis/" or "Case mismatch between loaded class name and declared class name: "App\Entity\devisgaragiste" vs. "App\Entity" \DevisGaragiste”. ”

Also, when I try to access a table that has no relationship with other tables, it shows and I can do all CRUD options, but when using related options, it shows the message I said

P粉587780103
P粉587780103

reply all(1)
P粉724737511

I think the first thing you need to do is list all the routes in your project. After that you should find the problematic route in the list and you'll know what to change in your code.

Since you are working in Symfony, you should run the following command:

php bin/console debug:router

You will find the route and see its path.

Hope this helps! :)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!