[eluser]Unknown[/eluser]
A general question for you all. In an application, I am outputting the result of a query in a table in the view. Right now, the query results are passed to the view via $data and then iterated through rendering the table.
My question is this. Would it be better to build the table in my model, and then just pass the completed table as a string to the view? So I send a string containing the html table code in $data instead of the result array. What is the best approach for MVC?
Thanks,
Mike W.