objUser = new UserController(); $this->menu = getPagesInMenu(); $this->cook = (isset($_COOKIE['kero_token']) ? $_COOKIE['kero_token'] : ''); $this->id = checkLegit($this->cook); $this->user = $this->objUser->getLoggedUser($this->id, $this->cook); } public function index () { $r = new Game($this->menu, $this->user); return $r->index(); } public function table ($slug) { $r = new VideoTable($this->menu, $this->user); return $r->index($slug); } public function prayer ($vid) { $r = new Prayer($this->menu, $this->cook, $this->user); return $r->index($vid); } }