I have not any idea of what happened but whenI changed /userlogin to /login all things are okay now.
how to create a unique routing pattern in symfony2
-
04-06-2022 - |
문제
I have an application that only users can access /user and /user/* parts but some URLs like /userABC (/user...) should be accessible for all visitors.
in this code:
acme_sinamelk_userArea:
pattern: /user
defaults: { _controller: AcmeSinamelkBundle:User:userAreaHome }
acme_sinamelk_userLogin:
pattern: /userlogin
defaults: { _controller: AcmeSinamelkBundle:Default:index }
acme_sinamelk_test:
pattern: /usera
defaults: { _controller: AcmeSinamelkBundle:Default:index }
when a user wants to go /usera it directs to /userlogin url and this is the problem.
thank you in advance.
해결책
제휴하지 않습니다 StackOverflow