function index($page = 0) { $c = new Category(); $this->data['categories'] = $c->include_related_count('events')->get_paged_iterated($page, $this->settings->per_page); }