src/Company/BaseBundle/Controller/DefaultController.php
author ymh <ymh.work@gmail.com>
Mon, 17 Oct 2011 13:49:59 +0200
changeset 9 41a9fa70a47b
parent 4 02eab39cf8c6
permissions -rw-r--r--
continue to implement example app

<?php

namespace Company\BaseBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;


class DefaultController extends Controller
{
    
    public function indexAction()
    {
    	$user = $this->get('security.context')->getToken()->getUser();
        return $this->render('CompanyBaseBundle:Default:index.html.twig', array('user'=>$user));
    }
}