Quote:
|
I think view layer only use to display data.
|
That the code there is exactly what we would consider the view. This is because if you can see all that the code does it to generate the content not the data. So the loop is perfectly valid, but something like a database query should be the part of the model.
If you really want to separate all php code, then you could use smarty or generate the html content within the controller (which basically defeats the mvc scheme)