Welcome Guest, Not a member yet? Register   Sign In
Where is the best place to use html_escape? Model, view or controller?
#8

[eluser]PhilTem[/eluser]
MVC is about separating business logic from both storing and displaying data. So technically you need PHP in your views to e.g. loop over a result array and display it. Your controller only serves as a bound between model and view in collecting and providing the data which the view creates a presentation of.
That's how I learned and understand MVC Wink


Messages In This Thread
Where is the best place to use html_escape? Model, view or controller? - by El Forum - 11-05-2012, 06:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB