Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $verif = $this->get('app.verifOrder');
- if($verif->verifAfternoon($commandeInSession))
- {
- $this->addFlash("error2", "Il n'est pas possible de commander le billet journée entière après 14h.");
- return $this->redirectToRoute('louvre_commande');
- }
- if( $verif->verifPastDate($commandeInSession))
- {
- $this->addFlash("error1", "Il n'est pas possible de commander pour une date passée.");
- return $this->redirectToRoute('louvre_commande');
- }
Add Comment
Please, Sign In to add comment