On 6/30/07, Geoff Ford <[EMAIL PROTECTED]> wrote: > > > Yes, you just remove the error index in the view. > > And I disagree, Tarique, error message should be _generated_ by the > model, as it is related to the value of the data.
Well the same model can have several kind of views so What if your view is not using text as an output? What if you want the error messages to be in different languages? what if the error message need not be human readable but needs to be in binary format? (oh well this is #1 put in a different way) And all the above combinations depending upon the situation. IMO - the model is concerned with the error and not how the end user is informed about error that has occurred or presented with the error. The _formatting_ of > the error message should most definately be handled in the view. No doubt about it that said - I realize it is damn convenient to put error messages in the model and be done with it Lastly - though there are very few discussions about this in the PHP world the pattern fanatics have argued and still argue about this endlessly Mariano - you have anything to add to this ;) Cheers Tarique ============================================================= Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com ============================================================= --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
