登录symfony2时出错

时间:2012-07-26 03:51:48

标签: php symfony doctrine-orm

昨天一切正常,但现在我得到了这个

Unable to find the controller for path "/login_check". Maybe you forgot to add the matching route in your routing configuration?

我有这段代码

secured_area:
            pattern:    ^/admin
            anonymous: ~
            form_login:
                login_path:  /login
                check_path:  /login_check

此路由

xxxxxxxx:
    resource: "@myBundle/Controller"
    type:     annotation


xxxxxxxx:
    resource: "@myBundle/Controller"
    type:     annotation
    prefix:   /secured

我是否需要进行更多设置

1 个答案:

答案 0 :(得分:0)

检查您的路线是否已经

_security_check:
    pattern: /login_check

并检查,如果此路线未被任何其他

覆盖

修改

您必须将check_path放在防火墙后面。的意思是:

check_path:  /admin/login_check