public function step(Request $request) { $post = $request->request->all(); $exercicio = new ConteudosLogic(); $return['exercicios'] = $exercicio->getConteudoById($post['idExercicio']); $pontos = new PontosLogic(); $return['pontos'] = $pontos->getPontosById($exercicio->pontos_id); $usuario = new UsersLogic(); $return['usuario'] = $usuario->getUserByEmail($post['user']); $this->app['twig']->addGlobal('layout_site', $this->app['twig']->loadTemplate('layout-site.html')); return $this->app['twig']->render('/site/exercicio.html', array('title' => 'Spoiler')); }
public function medalhas() { $user = new UsersLogic(); return $this->app->json($user->medalhas()); }