0

昨天一切正常,但现在我明白了

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

我需要做更多设置吗

4

1 回答 1

0

检查您的路由中是否有

_security_check:
    pattern: /login_check

并检查,如果这条路线没有被任何其他的覆盖

编辑

您必须将 check_path 放在防火墙后面。方法:

check_path:  /admin/login_check
于 2012-07-26T05:15:34.187 回答