문제

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.

도움이 되었습니까?

해결책

I have not any idea of what happened but whenI changed /userlogin to /login all things are okay now.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top