such route does not exist

Par mary_25, il y a 5 ans


Bonjour,

Je rencontre un petit problème avec mon code.

Ce que je fais

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

<a href="{{ path('forgotten_password') }}">Mot de passe oublié ?</a></p> Mon controller : /** * @Route("/managePassword/OubliPass", name="forgotten_password", methods={"GET","POST"}) * */ public function OubliPass( Request $request, UserRepository $users, \Swift_Mailer $mailer, TokenGeneratorInterface $tokenGenerator ): Response {...} Quand je fais : php bin/console debug:router il est bien présent forgotten_password GET|POST ANY ANY /managePassword/OubliPass

Ce que je veux

Je veux acceder a ma page

Ce que j'obtiens

An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "forgotten_password" as such route does not exist.").

2 réponses

olive140, il y a 5 ans

php bin/console cache:clear

BernardNgandu, il y a 5 ans

effectivement supprime le cache