Skip to content

Instantly share code, notes, and snippets.

@kklecho
Last active December 8, 2019 23:58
Show Gist options
  • Save kklecho/4bb0b80f6e8c6be92e447170f72d53c1 to your computer and use it in GitHub Desktop.
Save kklecho/4bb0b80f6e8c6be92e447170f72d53c1 to your computer and use it in GitHub Desktop.
<?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