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

#5
[eluser]DumpProgrammer[/eluser]
I have got the count and category working on the article view working because when you read the post you pass the id to the getcomments functions but its the homepage where I am struggling because I do not have the variable
Code:
$postid
yet. I have tried to add
Code:
$data['countcomments'] = $this->MComments->countComments($postid);
but that does not work because I have not yet defined the variable $postid.


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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