public function index()
 {
     $cards = new Cards($this->db);
     $this->f3->set('decks', array());
     foreach ($this->f3->get('category') as $index => $cat) {
         $this->f3->set('decks[' . $index . ']', $cards->getByCat($index));
     }
     $this->f3->set('content', 'app/views/mytcg/cards.htm');
     echo Template::instance()->render('app/templates/admin.htm');
 }