FourDegreez

msg:4117373 | 4:56 pm on Apr 17, 2010 (gmt 0) |
Is your design object-oriented? If you use simple data objects to represent the data in the rows, you would load the data into those objects and pass the objects to the presentation layer. Here you would loop through the objects and mix their data fields in with the HTML code.
|
optik

msg:4117626 | 11:11 am on Apr 18, 2010 (gmt 0) |
Won't that result in more code though slowing the app down, I can see the point when a lot of pre-formatting of the data has to occur but say you just wanted to retrieve a short list from a database and present that accordingly with no data formatting then would this be over doing it?
|
optik

msg:4117632 | 11:28 am on Apr 18, 2010 (gmt 0) |
Another thing is a lot of page elements rely on conditionals depending on the data, they would still have to remain on the presentation page Leaving the presentation page full of loops and conditionals and only really removing the database call.
|
|