pages
This commit is contained in:
parent
188600a044
commit
0c79a9deb9
|
@ -91,6 +91,9 @@ class DefaultController extends Controller
|
||||||
'enigma_id' => $enigma->getId(),
|
'enigma_id' => $enigma->getId(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if ($answer !== null) {
|
||||||
|
return $this->redirectToRoute('enigma_answered');
|
||||||
|
}
|
||||||
|
|
||||||
$form = $this->createFormBuilder()
|
$form = $this->createFormBuilder()
|
||||||
->add('content', TextareaType::class, [
|
->add('content', TextareaType::class, [
|
||||||
|
@ -115,6 +118,24 @@ class DefaultController extends Controller
|
||||||
'enigma' => $enigma,
|
'enigma' => $enigma,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Route("/enigma/oklm", name="enigma_too_late")
|
||||||
|
* @Template()
|
||||||
|
*/
|
||||||
|
public function tooLateAction()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Route("/enigma/ahah", name="enigma_answered")
|
||||||
|
* @Template()
|
||||||
|
*/
|
||||||
|
public function answeredAction()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route("/enigma/login", name="enigma_login")
|
* @Route("/enigma/login", name="enigma_login")
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Déjà joué
|
|
@ -1 +1,3 @@
|
||||||
test
|
{{ dump(enigma) }}
|
||||||
|
|
||||||
|
{{ form(form) }}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Prend plus ton encore…
|
Loading…
Reference in a new issue