public function achievement() { // auth Util\Auth::isAuthorized($this->signedUser, 'member', false, '/profile/sign-in'); \Own\Bus\Match\Data::checkMatchToView($this->player->getId()); $stats = \Own\Bus\PlayerMatch\Data::loadStats($this->player->getId()); // view $this->setTpl(); // main $tplMain = new Util\Template(Util\Template::SITE, ['www']); $tplMain->set('username', $this->player->getUsername()); $tplMain->set('stats', $stats); // layout $this->tplLayout->set('column1', $tplMain->render('profile-achievement')); // template $this->tplMaster->set('layout', $this->tplLayout->render('layout-center')); return $this->tplMaster->render('tpl-default'); }