Thank you, Amit. I remember having noticed that, and then it didn't work, probably because of something else... And then I forgot again. ;-)
Thanks anyway! On Thu, Jan 20, 2011 at 4:48 AM, Amit Badkas <[email protected]> wrote: > Hi, > Form helper's select() method needs attributes as 4th argument and not 3rd, > so following should be the correct syntax > <?php echo $this->Form->select('dienstmodell', $dienstmodelle, > null, array('empty' => false)); ?> > Hope this helps. > > Amit Badkas > PHP Applications for E-Biz: http://www.sanisoft.com > > > On Wed, Jan 19, 2011 at 6:57 PM, psybear83 <[email protected]> wrote: >> >> Hey everybody >> >> This is a very basic one, but I'm just not getting it, and it's >> beginning to drive me nuts. >> >> According to this 1.3 guide (http://book.cakephp.org/view/1566/View- >> and-Helpers), I sohuld use 'empty' in select so my <select> has no >> empty value. >> >> <?php echo $this->Form->select('dienstmodell', $dienstmodelle, >> array('empty' => false)); ?> >> >> Sadly this isn't working. And it's surprising that when I set it to >> true, it always selects the last option per default... >> >> Thank you for help :-) >> Josh >> >> -- >> Our newest site for the community: CakePHP Video Tutorials >> http://tv.cakephp.org >> Check out the new CakePHP Questions site http://ask.cakephp.org and help >> others with their CakePHP related questions. >> >> >> To unsubscribe from this group, send email to >> [email protected] For more options, visit this group >> at http://groups.google.com/group/cake-php > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
