I'm actually using 1.1 but I'll try this out. Thanks.

On Oct 27, 3:53 am, francky06l <[EMAIL PROTECTED]> wrote:
> With cake 1.2, if you call Model->create(), that will create a record
> containing the default value you have set in your table definition.
> That should do what you want, if you set fields "not null" in your
> table definition.
> Hope this helps
>
> On Oct 27, 8:21 am, Wole <[EMAIL PROTECTED]> wrote:
>
> > Is there a function I can call that will return an empty $data array
> > for a particular model? Say my model is called Event. When I call this
> > function I want it to return and empty $data array that may look
> > something like this:
>
> > Array
> > (
> >     [Event] => Array
> >         (
> >             [name] => '',
> >             [starttime] => '',
> >             [endtime] => ''
> >         )
> > );
>
> > So the array only contains the keys but empty values. Please let me
> > know if this makes sense or if more explanation is needed. Thanks.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to