symfony 1.4 form
custom form formatter/decorators
{
public function configure()
{
$myDecorator = new myListFormDecorator($this->getWidgetSchema());
$this->widgetSchema->addFormFormatter('custom', $myDecorator);
$this->widgetSchema->setFormFormatterName('custom');
}
}
class myListFormDecorator extends sfWidgetFormSchemaFormatter {
protected
$rowFormat = "
%hidden_fields% %field% %help%
",
$helpFormat = '<div class="help">%help%</div>',
$errorRowFormat = "%error%",
$errorListFormatInARow = " ",
$errorRowFormatInARow = " ",
$namedErrorRowFormatInARow = " ",
$decoratorFormat = "%content%";
}// decorator class