Thursday 15 August 2013

php - label of repeat password symfony 2.3 -


I am trying to create a form with Symphony but I have a problem with the repetitive field < Pre> - & gt; Add ('password', 'repeated', array ('type' = & gt; 'password', 'first_name' => $ translator- & gt; trans ('global.password'), 'second_name' = & Gt; $ translator- & gt; trans ('register.confirm'))

If a place is just one word in first_name or second_name but I have no problem or a point I have this error:

  The name "register.confirm" contains invalid characters. The name must start with a letter, number, or underscore and it only contains letters, numbers, numbers, under Scores ("_"), hyphen ("-") and colon (":") are included. Labels are not labeled for    = "text"> 

first_name and second_name fields. These are the names of the area and letters, numbers, numbers, underscores ("_"), hyphen ("-") and colon (":") Nothing should be left except For more information, see the isValidName method source code:

For both fields use first_pop and other options / to label to determine.

  - & gt; Add ('password', 'repeated', array ('type' = & gt; 'password', 'first_points' = & gt; array ('label' = & gt; $ translation (& quot; transport; & quot; Trans ('global.password')), 'second_points' = & gt; array ('label' = & gt; $ translator- & gt; trans ('register.confirm')))   



No comments:

Post a Comment