Using model functions in View |
[eluser]alboyd[/eluser]
Quote: Does that work? I've never done it I would always do: Code: foreach($clients as $client)
[eluser]daparky[/eluser]
[quote author="alboyd" date="1253515923"] Quote: Does that work? I've never done it I would always do: Code: foreach($clients as $client) Yes, that works fine. I usually do what you do but this time i didn't ![]()
[eluser]BrianDHall[/eluser]
[quote author="wiredesignz" date="1253511688"]@BrianDHall and interested others, Quote: The view obtains data from the model and presents it to the user. The view represents the output of the application. http://www.phpwact.org/pattern/model_view_controller[/quote] @wiredesignz Thanks for posting that, I've never seen that particular explanation of MVC. I'm not entirely sure I like it, but it does considerably differ from my previous understanding of the relationships between M, V, and C. I can't say its wrong or even that I particularly disagree with anything in it though, it does make sense - I just think I've been using views in a very different fashion. Cheers! |
Welcome Guest, Not a member yet? Register Sign In |