_('Product Categories'), 'body'=>View::factory('product/category/list') ->set('results',$this->_get_categories()), )); } /** * Obtain a list of our categories * @todo Only show categories according to the users group memeberhsip * @todo Obey sort order * @todo Move this to the model */ private function _get_categories() { return ORM::factory('Product_Category') ->list_active(); } } ?>