I think you're looking for the automagic Created and Modified fields http://book.cakephp.org/view/1015/created-and-modified
Cake will automatically track created/modified if you add these fields to your table. Hope this is what you wanted! On Jul 13, 8:39 am, Vinicius Núñez <[email protected]> wrote: > I'm doing a rate comments system, and I don't know how to save the > dates in the data base. How you can see, I pass an id to the function, > which I realize to use to save on the table comments_rate > > comments (id, comment) > comments_rate (id, comment_id, rate) > > $html->link('comments_rate', array('controller' => 'comments', > 'action' => 'rate_comment', 'id' => $comment_id)); > > function rate_comment(id) { > // CODE > > } > > thanks!!! 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 [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
