[TYPO3-mvc] Fluid: form.select view helper and empty default item
Henrik Møller Rasmussen
info at hmrdesign.dk
Tue Apr 20 10:22:54 CEST 2010
On 20/04/10 10.02, my.maylz at web.de wrote:
> well, this seems to be the same ? :)
>
> I had to user the "old fashioned way" -
> snip
>
> $data = array(''=>'-- Please select --');
> while( $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res) )
> {
> $data[$row['uid']] = $row['someval'];
> }
>
> return $data;
>
> snap
Tried to use:
...
return array(0=>'---',1=>'Someval');
...
Then again, when choosing the 0/--- option, it will not save. So it must
be something with extbase not saving when the uid is 0 or something :-(
- Henrik
More information about the TYPO3-project-typo3v4mvc
mailing list