Hi mates,
I'm having a problem in this piece of code:
$modulos = array ( 1 = option 1, 2 = option 2);
$this-widgetSchema['id_modulo'] = new sfWidgetFormSelectCheckbox(
array('choices' = $modulos)
);
$this-validatorSchema['id_modulo'] = new sfValidatorChoice(
array('choices' =
You must only pass the keys of your $modulo array to validator :
$this-validatorSchema['id_modulo'] = new sfValidatorChoice(
array('choices' = array_keys($modulos))
);
wueb wrote:
Hi mates,
I'm having a problem in this piece of code:
$modulos = array ( 1 = option 1, 2 = option 2);