the array, doing it in the model is appropriate. If you're adding
markup, you should do it in the view.
- James
On Apr 23, 10:08 am, Ernesto <e.fanz...@gmail.com> wrote:
> hello
>
> i'm wondering what's the best place to convert DB data in human-
> readable format.
>
> right now i'm using some routines in AppModel::afterFind and in
> AppModel::beforeDelete.
>
> These functions are working correctly but... formatting data in model
> doesn't sound very MVC-ish to me.
>
> So.. i was wondering... wich way is the most coherent with MVC
> pattern?
--~--~---------~--~----~------------~-------~--~----~
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:
Post a Comment