2016-04-21 25 views
-1

我已成功更改登錄模板,但我想包含選項以供新用戶註冊(如果他們沒有登錄信息)。重寫登錄fosuserbundle以包含註冊選項

我試圖簡單地包括:{% include "FOSUserBundle:Registration:register_content.html.twig" %} 但沒有任何改變。

我該怎麼做?

回答

-1

我無法找到路徑的註冊用戶...

<a href = "{{ path('fos_user_registration_register') }}">Register Here</a>

...這就是所有

+0

您可以隨時使用'PHP應用程序/控制檯調試:路由器| grep register「(在linux上)查看其中有」register「的所有路由或php應用程序/ console debug:router> file.txt(在Windows上,並在項目中打開新創建的'file.txt'目錄) - 具有相同的效果。如果你使用symfony3,你必須使用'bin'而不是'app'。或者,如果您想查看所有路由,只需編寫'php app/console debug:router'(或'php app/console debug:router> file.txt')。 –