You could also name the databasefield 'modified' or 'updated' and
everytime you save the record, this field will be update
'automagically'...

On 16 okt, 08:28, thun <[EMAIL PROTECTED]> wrote:
> $this->data['TableName']['date'] = date();
>
> date() expects at least 1 parameter,
>
> But this worked great...
>
> $this->data['TableName']['date''] = date("Y-m-d H:i:s");


--~--~---------~--~----~------------~-------~--~----~
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