public function index() { $item = new Item($this->db); $this->f3->set('specials', $item->getSpecial()); $info = new Info($this->db); $information = $info->all()[0]; $this->f3->set('isPromotionOn', $information->isPromotionOn); $this->f3->set('isSpecialOn', $information->isSpecialOn); $this->f3->set('promotionText', $information->promotion); $this->f3->set('isHome', 'active'); $this->f3->set('view', 'user/home.html'); }