Last active
May 3, 2020 11:11
-
-
Save anvodev/64357964bc1d02aa185ac5c181457d3d to your computer and use it in GitHub Desktop.
Basic Controller with index action
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 | |
class HomeController extends AbstractController | |
{ | |
/** | |
* @Route("/", name="home") | |
*/ | |
public function index() | |
{ | |
return $this->render('home/index.html.twig', [ | |
'controller_name' => 'HomeController', | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment