Last active
August 15, 2018 10:41
-
-
Save tatma/54dad9d976f59b86170540b21ecc2d49 to your computer and use it in GitHub Desktop.
Aggiungiamo la rotta 'pizza'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// previous content | |
/** | |
* @Route("/pizza", name="pizza") | |
*/ | |
public function pizza() | |
{ | |
return $this->render('Default/pizza.html.twig', [ | |
'name' => 'Antonio', | |
'pizza' => 'Margherita' | |
]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>pizzeria Zombie Process</title> | |
</head> | |
<body> | |
<p>Ciao, sono {{ name }}! La mia pizza preferita è la {{ pizza }}</p> | |
<a href="{{ path('home') }}">Torna alla home</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment