Last active
December 8, 2019 23:58
-
-
Save kklecho/4bb0b80f6e8c6be92e447170f72d53c1 to your computer and use it in GitHub Desktop.
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 | |
namespace App\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
use Symfony\Component\Routing\Annotation\Route; | |
class HomeController extends AbstractController | |
{ | |
/** | |
* @Route("/home", name="home") | |
*/ | |
public function index() | |
{ | |
$words = ['sky', 'cloud', 'wood', 'rock', 'forest', | |
'mountain', 'breeze']; | |
return $this->render('home/index.html.twig', [ | |
'words' => $words | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment