Pregunta

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.

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top