I think you can setup the default values like this:

$this->data[model][field]=value
e.g:
$this->data['members']['membership_id']=5


On 6/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I'm just setting up a new install and have some default values. I'm
> using
>
> $this->set('membership_id', $membershipId);
>
> in the controller and then using $membership_id in the view to set the
> default value.
>
> It seems more appropriate that the model actually holds the default
> value which is then overwritten when an actual record is retrieved but
> I can't see that this has been implemented.
>
> So, am I going about this the right way or is there a "best practice"
> that I should be following?
>
> thanks
>
> Sarah
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
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 http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to