How to create categories and associate them with posts |
I'm doing some tests, like counting how many posts are in a category. Unfortunately I can not get it running because it tells me it can not pick up the variable, but if I do "echo" me it prints correctly.
Anyway, I cleaned up everything and now only show all the results in the "love" category. How can I make the variable of all categories in place? Controller: PHP Code: public function category($slug_category) { Model PHP Code: public function countPostCat() { Views PHP Code: (<?php echo $this->admin_model->countPostCat(); ?>) |
Messages In This Thread |
How to create categories and associate them with posts - by Marcolino92 - 09-15-2017, 10:53 AM
RE: How to create categories and associate them with posts - by ciadvantage - 09-15-2017, 06:33 PM
RE: How to create categories and associate them with posts - by Marcolino92 - 09-16-2017, 12:07 AM
RE: How to create categories and associate them with posts - by Marcolino92 - 09-16-2017, 02:42 AM
RE: How to create categories and associate them with posts - by Wouter60 - 09-16-2017, 03:56 AM
RE: How to create categories and associate them with posts - by Marcolino92 - 09-16-2017, 04:09 AM
RE: How to create categories and associate them with posts - by Wouter60 - 09-16-2017, 05:17 AM
|