public function category()
 {
     $onec = new Item($this->db);
     $this->f3->set('items', $onec->cat($this->f3->get('PARAMS.tok')));
     $this->f3->set('catmenu', $this->f3->get('PARAMS.tok'));
     $this->f3->set('header', 'Category List');
     $this->f3->set('view', 'item/list.htm');
     //breadcrumbs
     $this->f3->set('breadcrumb', array(array("url" => "/c", "name" => "Categories"), array("url" => NULL, "name" => $this->f3->get('PARAMS.name'))));
 }
 public function tg()
 {
     $onec = new Item($this->db);
     $this->f3->set('items', $onec->cat($this->f3->get('PARAMS.tok')));
     $this->f3->set('catmenu', $this->f3->get('PARAMS.tok'));
     $this->f3->set('header', 'tg List');
     //template
     $this->f3->set('view', 'item/list.htm');
 }