I am using the widget
sfWidgetFormChoice(array (
'choices' => CountryPeer::getAllCountry(),
))
and validator as
sfValidatorChoice(array (
'choices' => array_keys(CountryPeer::getAllCountry()),
))
I get a select element as
<select id="country" name="reg_form[country]">
<option value="1">India</option>
<option value="2">Srilanka</option>
</select>
I want to add a option --Select Countries--
as default:
<option value="">--Select Countries--</option>
so that it should throw an required error, if i am not selecting any country.