[solved] Forms renderRow problem with errorMsg

Discussion relating to version 1.2.x stable

[solved] Forms renderRow problem with errorMsg

Postby BabySnake » Tue May 03, 2011 9:26 pm

Hi!

Im trying to render a row field in a template with some extra styles, like this:

Code: Select all
 <?php echo $form['email']->renderRow(array('class' => 'text')) ?>   
 <?php echo $form['email']->renderError() ?>


The problem occurs when my form doesnt validate on this field... then it displays the error message 2 times!, i.e the renderRow renders one errorMsg string, and the renderError does it again... How can i stop renderRow from displaying the error message?

thanks!
Last edited by BabySnake on Wed May 04, 2011 7:21 pm, edited 1 time in total.
BabySnake
Member
 
Posts: 86
Joined: Sun Mar 30, 2008 6:50 pm
Location: Sweden

Re: Forms renderRow problem with errorMsg

Postby BabySnake » Wed May 04, 2011 7:21 pm

BabySnake
Member
 
Posts: 86
Joined: Sun Mar 30, 2008 6:50 pm
Location: Sweden


Return to symfony 1.2

Who is online

Users browsing this forum: No registered users and 1 guest