0
我使用FOSUserBundle
一旦用戶登錄的路線,我已經建立,現在激活的用戶,當我使用以下網址哪裏指向使用FOSUserBundle
http://localhost/symfony/web/app_dev.php/login
我收到登錄 以下錯誤,我不知道爲什麼會發生這種情況
這裏是我的路線,它似乎它指向DefaultController
,但我不知道在哪裏FOSUSerBundle
應該指向一個壓腳提升登錄
_welcome:
pattern:/
defaults: { _controller: AcmeDemoBundle:Welcome:index }
_demo_secured:
resource: "@AcmeDemoBundle/Controller/SecuredController.php"
type: annotation
_demo:
resource: "@AcmeDemoBundle/Controller/DemoController.php"
type: annotation
prefix: /demo
_demo:
resource: "@AcmeDemoBundle/Controller/WSChat.php"
type: annotation
prefix: /chat
_demo:
resource: "@AcmeDemoBundle/Controller/OpenPubSub.php"
type: annotation
prefix: /pubusb
fos_user_security:
resource: "@FOSUserBundle/Resources/config/routing/security.xml"
fos_user_profile:
resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
prefix: /profile
fos_user_register:
resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
prefix: /register
fos_user_resetting:
resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
prefix: /resetting
fos_user_change_password:
resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
prefix: /profile
好吧,所以FOSUserBundle hasn;噸給予任何默認模板,因此我們需要配置我們自己的頁面儀式? – Hunt
它爲登錄,註冊,配置文件等頁面提供了默認的模板,是的,有很多方法可以覆蓋這些模板以及 –
好的,但他們沒有成功登錄後的模板 – Hunt