On 10/10/07, stefanb <[EMAIL PROTECTED]> wrote: > > So you're saying I should put HTML and javascript code in my model > too. All I need in my view is a variable sent from the model > containing the display code, and echo that out...
Nobody is suggesting that at all as far as I can tell. All I'm saying is this: 1) The job of the Model is to pull data from the data sources 2) The job of the Controller is to query the Model for information, sometimes by passing it conditions on that information, then pass that information to the View 3) The job of the View is to display the information that has been generated by the Model and passed to it by the Controller That is perhaps a gross over-simplification but I feel it maps well to the way MVC is implemented in CakePHP. -- Chris Hartjes Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: "Just build it, damnit!" @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
