php - Symfony2 Customize the Form from the Simple Registration Tutorial -


I have followed it and the registration is working fine.

I have only one issue in this form:

User

I do not want this title I can customize it Want to do How do I change this title?

Everything for the code is in the form of except my controller:

  / ** * @ root ("/ signup", name = "wx_exchange_signup") * @template ("WXExchangeBundle: user: signup.html.twig") * @ method ({"GET"}) * User sign up - open to the public * creates new users based on the information they provided * / public Function Signup Action (Request $ Request) {Receive ($ -> this-> (Receive 'security.context') -> Aggregate ('IS_AUTHENTICATED_REMEMBERED')) // // Authenticated User on Homepage Redirect to $-$ this- & gt; Redirect ($ this- & gt; generateUrl ('wx_exchange_default_index')); } $ Sign = new registration (); $ Form = $ this- & gt; CreateForm (new registration type), $ registration, array ('action' =>; $ the- & gt; generation url ('wx_exchange_signup_create'),)); Returns array ('form' = & gt; $ form-> createView ()); } The answer I received is to display only those element elements, Those you want to:  
  & lt; Form action = "/ app_dev.php / signup / create" method = "post" name = "registration" & gt; & Lt; Div id = "registration" & gt; & Lt; Div & gt; & Lt; Div id = "registration_user" & gt; & Lt; Div & gt; {{Form_label (form.user.email)}} {{form_widget (form.user.email)}} & lt; / Div & gt; & Lt; Div & gt; {{Form_label (form.user.username)}} {{form_widget (form.user.username)}} & lt; / Div & gt; & Lt; Div & gt; {{Form_label (form.user.password.password)}} {{form_widget (form.user.password.password)}} & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div & gt; {{Form_label (form.terms)}} {{form_widget (form.terms)}} & lt; / Div & gt; & Lt; Div & gt; & Lt; Button name = "registration [sign up]" id = "registration_Sign up" type = "submit" & gt; Sign up & lt; / Button & gt; & Lt; / Div & gt; {{Form_widget (form._token)}} & lt; / Div & gt; & Lt; / Form & gt;  

This is documented in the symphony chapter.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -