action login index does not exist symfony

on with 1 Reply

Symfony has a plugin called sfGuardDoctrine for user authentication and login system. Using this plugin we are able to create secure pages. While I try to configure sfGuardDoctrine plugin according to instruction, I got the following error Action “login/index” does not exist. I spend a lot of time on it to resolve the issue, Finally I found the mistake that i made and i would like to share it with you.

Problem was with my “routing.yml file”. According to the instructions I just added the code as below in routing.yml file.

sf_guard_signin:
 url: /login
 param: { module: sfGuardAuth, action: signin }
sf_guard_signout:
 url: /logout
 param: { module: sfGuardAuth, action: signout }
sf_guard_password:
 url: /request_password
 param: { module: sfGuardAuth, action: password }

 But this code should be add before default routing rule.

# generic rules
# please, remove them by adding more specific rules
default_index:
 url: /:module
 param: { action: index }
default:
 url: /:module/:action/*

Hope this help if some one looking for same issue.

 

Posted in Cocktail and tagged by .

About Gowri

I am professional web developer with 4+ years experience. PHP, jQuery, WordPress, Magento and Symfony2 are my key skills in web development. I am working with strong enthusiastic team with spirit. We provide all web related solution like HTML/CSS development, Web graphic design and Logo.

One thought on “action login index does not exist symfony

Leave a Reply to Roanny Lamas López Cancel reply

Your email address will not be published. Required fields are marked *