and it is mentioned in the "configuration" and the "blog tutorial"
sections in the manual

"If you include a 'created' and/or 'modified' column in your table,
Cake will automatically populate the field when appropriate."

"Check out Appendix "Cake Conventions" more information, but suffice
it to say that naming our table 'posts' automatically hooks it to our
Post model, and having fields called 'modified' and 'created' will be
automagically managed by Cake."



On 10/3/07, Samuel DeVore <[EMAIL PROTECTED]> wrote:
> it is nomenclature vodoo
>
> On 10/3/07, EVan <[EMAIL PROTECTED]> wrote:
> >
> > I'm confused as to how the datetime is set for the modified and
> > created fields in the blog tutorial.  I feel like the the
> > posts_controller should contain something with a now() function or
> > something... but it doesn't and the whole thing works fine.   ... ?
> >
> > Furthermore, I can't see in the code why the 'add' function affects
> > only the 'created' field while 'edit' affects only the 'modified'
> > field.  Is this more nomenclature voodoo?
> >
> > A searched the API and the manual for any clues but I really can't
> > figure this one out... I think it's implicative of my general
> > understanding up to this point.
> >
> >
> > > >
> >
>
>
> --
> (the old fart) the advice is free, the lack of crankiness will cost you
>
> - its a fine line between a real question and an idiot
>
> http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

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