In my symfony 1.4 project I want to change label of form text. I can do that by following code:
$this->setWidget('first_name', new sfWidgetFormInputText(array('label' => 'First Name')));
But I can't do that if I add 'label' in the following code, as probably sfValidatorString
doesn't accept 'label'
.
$this->setValidator('banner_id', new sfValidatorString(array('min_length' => 9)));
How can I solve this?