src/Company/BaseBundle/Controller/DefaultController.php
changeset 4 02eab39cf8c6
parent 2 806e57d67020
equal deleted inserted replaced
3:e54dfe4d0b2b 4:02eab39cf8c6
     6 
     6 
     7 
     7 
     8 class DefaultController extends Controller
     8 class DefaultController extends Controller
     9 {
     9 {
    10     
    10     
    11     public function indexAction($name)
    11     public function indexAction()
    12     {
    12     {
    13         return $this->render('CompanyBaseBundle:Default:index.html.twig', array('name' => $name));
    13     	$user = $this->get('security.context')->getToken()->getUser();
       
    14         return $this->render('CompanyBaseBundle:Default:index.html.twig', array('user'=>$user));
    14     }
    15     }
    15 }
    16 }