cake-php@googlegroups.com
[Top] [All Lists]

Re: default checkbox state still not fixed

Subject: Re: default checkbox state still not fixed
From: cricket
Date: Sun, 17 Oct 2010 22:26:33 -0400
On Sun, Oct 17, 2010 at 8:13 PM, cricket <zijn.digital@xxxxxxxxx> wrote:
> On Sun, Oct 17, 2010 at 5:23 PM, euromark <dereuromark@xxxxxxxxxxxxxx> wrote:
>> http://www.dereuromark.de/2010/06/23/working-with-forms/
>
> Thanks, that looks good. And pretty obvious! I think it would be
> better to get the values from the model, though:
>
> $this->data['Country']['active'] = $this->Country->default_active;
>
> I prefer something like this than a function in bootstrap, which
> worked fine before but seems a bit unseemly with Cake.
>

Although, surely you'd only want to do this in add()? In edit()
$this->data would be set with the record's values.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

<Prev in Thread] Current Thread [Next in Thread>