Wednesday, November 3, 2010

Auto-fill Date Values In Form

I'm having trouble auto-filling the form input with the date value
that's already been saved in the database.

Simply, I've saved a selected date, but when I return to edit it, the
date defaults to today's date.
I've never had a problem with the auto-filling forms before, but for
some reason this won't work.

Does anyone have any suggestions how to extract the D, M & Y values
out of a date string using Cake i.e. $job['Job']['date']['month']
etc.? I was thinking I could make my own separate inputs for each day,
month and year...

Thanks,

Adam

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: