/** * Override the default page functionality to filter by taxon_id. */ public function page($page_no, $filter = null) { $taxa_taxon_list_id = $filter; // At this point, $taxa_taxon_list_id has a value - the framework will trap the other case. // No further filtering of the gridview required as the very fact you can access the parent taxon // means you can access all the relationships for it. // However, the grid actually needs to be filtered by taxon_meaning_id. $ttl = ORM::Factory('taxa_taxon_list', $taxa_taxon_list_id); $this->base_filter['my_taxon_meaning_id'] = $ttl->taxon_meaning_id; parent::page($page_no); $this->view->taxa_taxon_list_id = $taxa_taxon_list_id; }
/** * Override the default page action (which loads the main grid of users) to add notes to the page as * a flash. */ public function page($page_no, $filter = null) { parent::page($page_no, $filter); }