[eluser]someone
[/eluser]
[quote author="Aken" date="1331079400"]Do all of your logic that generates data to be displayed in the view BEFORE passing to it. That's the point of MVC.[/quote]
Ok, I will explain my problem and you will see what I think. I have news system and two tables articles and comments. On first (index) page of site I want to show article's title and then the content of article. After that, I want to show how many comments have been entered -> in background I will set query which selects all comments with id of article and then display number of them with num_rows() on the first page. What's the best way to do that?
@axe: Thanks for this piece of code!