I have an open ended question for PHP View-Controller-Class model.
Say, we have to perform logic loop in controller to use method in class to retrieve data row from database.
However, at anyone time, I can set 1 PHP variable in view to display the content. I need help to understand how to display data in nicely tabulated HTML format from controller.
I know one way is to use Javascript
$(#div_id).html(variable_embedded_html_coding);
All advise would be very much appreciated.

<table></table>in your view i think you are thinking about grid control???