View Single Post
  #7 (permalink)  
Old 03-28-2007, 09:38 PM
SpotSec's Avatar
SpotSec SpotSec is offline
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 121
Default

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)
__________________
Zym Framework - A Zend Framework extension library w/ demo app

SpotSec Blog:
http://spotsec.com/blog
Reply With Quote