Got to /lib/form/doctrine/BaseFormDoctrine.class.php
adn put following line in public function setup().
$row_format = "<tr>\n<th>%label%</th>\n<td>%help%%field%%error%%hidden_fields%</td>\n</tr>\n";
$this->getWidgetSchema()->getFormFormatter()->setRowFormat($row_format);
/**
* Project form base class.
*
* @package passportServices
* @subpackage form
* @author Your name here
* @version SVN: $Id: sfDoctrineFormBaseTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
abstract class BaseFormDoctrine extends sfFormDoctrine
{
public function setup()
{
$row_format = "<tr>\n<th>%label%</th>\n<td>%help%%field%%error%%hidden_fields%</td>\n</tr>\n";
$this->getWidgetSchema()->getFormFormatter()->setRowFormat($row_format);
}
}
To remove this, open your file in vi editor and type :%s/(ctrl-v)(ctrl-m)//g
OR :%s/^M//g
Here %s is search and replace command in VI ^M is need to replace Enter text between // which you want there and finally g is using for all occurrences.