Hi,
I'm trying to use the formSelect view helper by passing as my options
argument (data fetched from database):
$options = array(
1=>'Option 1',
3=>'Option 2',
4=>'Option 3',
7=>'Option 4',
9=>'Option 5',
);
But as soon as it gets into Zend_View_Abstract::_call(), the options
array becomes:
$options = array(
0=>'Option 1',
1=>'Option 2',
2=>'Option 3',
3=>'Option 4',
4=>'Option 5',
);
So it loses it's indexing so I can't store the value in the
database...does anyone know why this is happening or have a solution to
this other than adding some text to the key to force it to be a string?
I'm using PHP 5.3.1 if that helps.
Thanks,
Greg