Quantcast
Channel: Grafikart | Derniers Sujets du forum
Viewing all articles
Browse latest Browse all 1542

Tuto Gestion des options problème a 7 min 27

$
0
0

Bonjour,

Voila je rencontre un petit problème avec mon code quand je tape /option .

Ce que je fais

Décrivez ici votre code ou ce que vous cherchez à faire

php bin/console make:crud Option

 created: src/Controller/OptionController.php
 created: src/Form/OptionType.php
 created: templates/option/_delete_form.html.twig
 created: templates/option/_form.html.twig
 created: templates/option/edit.html.twig
 created: templates/option/index.html.twig
 created: templates/option/new.html.twig
 created: templates/option/show.html.twig


  Success!


 Next: Check your new CRUD by going to /option/

Ce que je veux

le meme resultat c'est a dire arriver a la page option

Ce que j'obtiens

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option t0' at line 1
pourtant je suis son tuto a la lettre
EntityRepository->findAll()
in src/Controller/OptionController.php (line 23)
    /**     
     * @Route("/", name="option_index", methods="GET")     
     */   
    public function index(OptionRepository $optionRepository): Response   
    {        
        return $this->render('option/index.html.twig', ['options' => $optionRepository->findAll()]);   
    }   

Viewing all articles
Browse latest Browse all 1542

Trending Articles