Skip to content

Commit

Permalink
default page
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb committed Nov 27, 2011
1 parent 5e630f7 commit dad5a21
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Acme/UserBundle/Controller/DefaultController.php
Expand Up @@ -9,11 +9,11 @@
class DefaultController extends Controller
{
/**
* @Route("/hello/{name}")
* @Route("/")
* @Template()
*/
public function indexAction($name)
public function indexAction()
{
return array('name' => $name);
return array();
}
}
11 changes: 10 additions & 1 deletion src/Acme/UserBundle/Resources/views/Default/index.html.twig
@@ -1 +1,10 @@
Hello {{ name }}!

<h1>Hello!</h1>

{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<a href="{{ path('fos_user_profile_edit') }}">Profile</a>
<a href="{{ path('fos_user_security_logout') }}">Logout</a>
{% else %}
<a href="{{ path('fos_user_registration_register') }}">Register</a> |
<a href="{{ path('fos_user_security_login') }}">Login</a>
{% endif %}

0 comments on commit dad5a21

Please sign in to comment.