public function action_index() { $data['categories'] = Model_Category::find_all_with_nb_posts(); $this->template->title = "Categories"; $this->template->content = View::forge('admin/category/index', $data); }