On Sun, Oct 17, 2010 at 8:13 PM, cricket <[email protected]> wrote:
> On Sun, Oct 17, 2010 at 5:23 PM, euromark <[email protected]> wrote:
> 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
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at