سؤال

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