Re: Can't get Form-select() with *no* empty value to work in 1.3 --psybear

2011-01-20 Thread Joshua Muheim
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 amit.sanis...@gmail.com wrote: Hi, Form helper's select() method needs attributes as 4th

Can't get Form-select() with *no* empty value to work in 1.3 --psybear

2011-01-19 Thread psybear83
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

Re: Can't get Form-select() with *no* empty value to work in 1.3 --psybear

2011-01-19 Thread euromark
use Form-div('d', array('type'='select', 'options'=$d)) On 19 Jan., 14:27, psybear83 psybea...@gmail.com 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-

Re: Can't get Form-select() with *no* empty value to work in 1.3 --psybear

2011-01-19 Thread euromark
sry, i meant $this-Form-input() ^^ On 19 Jan., 14:27, psybear83 psybea...@gmail.com 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

Re: Can't get Form-select() with *no* empty value to work in 1.3 --psybear

2011-01-19 Thread Joshua Muheim
Thanks, but I should have said that I'm creating form elements *not* for a model. On Wed, Jan 19, 2011 at 2:59 PM, euromark dereurom...@googlemail.com wrote: sry, i meant $this-Form-input() ^^ On 19 Jan., 14:27, psybear83 psybea...@gmail.com wrote: Hey everybody This is a very basic one,

Re: Can't get Form-select() with *no* empty value to work in 1.3 --psybear

2011-01-19 Thread euromark
doesnt matter for the outcome :) On 19 Jan., 17:04, Joshua Muheim psybea...@gmail.com wrote: Thanks, but I should have said that I'm creating form elements *not* for a model. On Wed, Jan 19, 2011 at 2:59 PM, euromark dereurom...@googlemail.com wrote: sry, i meant $this-Form-input() ^^

Re: Can't get Form-select() with *no* empty value to work in 1.3 --psybear

2011-01-19 Thread Amit Badkas
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: