Home  >  Q&A  >  body text

Route not found: GET http://127.0.0.1:8000/entity name/

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粉587780103P粉587780103260 days ago495

reply all(1)I'll reply

  • P粉724737511

    P粉7247375112024-02-26 00:04:43

    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! :)

    reply
    0
  • Cancelreply