Last active
December 14, 2015 15:58
Revisions
-
darraghenright revised this gist
Mar 7, 2013 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ <?php // omitted namespace declaration and imports for brevity class HomeController extends Controller { -
darraghenright created this gist
Mar 7, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ class HomeController extends Controller { /** * Home page * * @Route("/", name="home_index") * @Secure(roles="ROLE_USER") * @Method("get") * @Template() */ public function indexAction() { return array(); } /** * Handle form post * * @Route("/", name="home_form") * @Secure(roles="ROLE_USER") * @Method("post") * @Template() */ public function handleFormAction() { // implement... return array(); } }