I'm new to Symfony2 and I'm trying to create a basic login system. This is my security.yml page:
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
login:
pattern: ^/demo/secured/login$
security: false
secured_area:
pattern: /^
form_login:
login_path: login
check_path: login_check
logout:
path: /logout
target: /
I am getting the login page but when I submit the form i get a exception that
"Unable to find the controller for path "/login_check". Maybe you forgot to add the matching route in your routing configuration?"