I'm outputting fields from a database. I have the basic add, edit, index pages. I have a controller with all the add, edit, delete, etc. functions.
I'm a little fuzzy on where to put the formatting for my fields. See, I want to assign a few of the database fields to variables. And I want to format a few of the timestamp fields into human date formats. I know how to do all of this with php, but where do I put it. Is it ok to put that kind of stuff in a view, or is that breaking down the whole logic of the MVC. Of course, if I were looping through fields of a database, the on-the- fly formatting would almost have to go in the view, correct? I'm just starting out and I don't want to develop bad habits now. Any thoughts? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
