• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with counting articles on comments and categories on homepage

#10
[eluser]Maglok[/eluser]
So $post is the query of posts. Don't see why you can't do it in the controller. Hell if you want you could even grab the commentcount on each post you select from the model in the model and tack it on.

That said, I wouldnt worry to much about where you grab the data exactly, though keeping MVC in the back of your head is a good thing.


Messages In This Thread
Need help with counting articles on comments and categories on homepage - by El Forum - 02-16-2010, 10:05 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.