Created
May 15, 2017 19:30
-
-
Save omarkdev/c1d1cb67eda4350bbb6571fe118beb3f to your computer and use it in GitHub Desktop.
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 characters
<?php | |
protected function indexAction() | |
{ | |
if ($this->security->isGranted('ADMIN')) { | |
$view = 'admin/index.html.twig'; | |
} else { | |
$view = 'home/access_denied.html.twig'; | |
} | |
return $this->render($view); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment