Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8068763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:47:36+00:00 2026-06-05T12:47:36+00:00

In the Book for symfony2 on pages 156-157 There is a nice tutorial for

  • 0

In the Book for symfony2 on pages 156-157 There is a nice tutorial for how to make your own login system using forms.

When I follow these steps, I am faced with a “No route found for “POST /login_check”” error message.

security.yml:

secured_area:
    pattern:    ^/secured/
    form_login:
        login_path: /login
        check_path: /secured/login_check
    logout:
        path:   /secured/logout
        target: /login

routing.yml:

login:
    pattern: /login
    defaults: { _controller: MySecurityBundle:Security:login }
login_check:
    pattern: /secured/login_check

Can anyonw tell me why mine doesn’t work and sensioLabs apparently does?

The only difference I can see is that I wiped out the Acme bundle and created a fresh bundle with security, copy-pasting all files as per tutorial (I thought ACME was a demo bundle and not necessary for functions such as security?).

I have no default route set for the login_check route, since tutorial says on page 156 “You will not need to implement a controller for the /login_check URL as the firewall will
automatically catch and process any form submitted to this URL.”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:47:38+00:00Added an answer on June 5, 2026 at 12:47 pm

    You don’t need to specify controller but you have to specify routing path, in your case it is

    pattern: /secured/login_check
    

    but you are submitting form to /login_check, edit either yor form action to include /secure or remove it from routing.yml

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am pretty new on symfony2 (just reading its own pdf book) and I
I'm trying to follow this documentation on Symfony : http://symfony.com/doc/current/book/forms.html ok so here is
The book says about a small Windows.Forms program The Windows Forms classes are in
I'm using Symfony2 Framework, and I want to update an entity with data from
Django book and Real World Haskell are using some similarly-looking web publishing platforms (with
So I'm reading the security chapter of Symfony2 Book. I understand everything, but I'd
I'm trying to build a form using symfony2, but I keep getting the error
In Symfony 2 book there is an example of how to do that for
I'm following the security chapter of the Symfony 2 book. There's is an example
The book 'Modern Compiler Design' is the nice book about compilers. In its source

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.