Skip to content

Instantly share code, notes, and snippets.

@glynrob
Created November 16, 2013 14:15
Show Gist options
  • Save glynrob/7500626 to your computer and use it in GitHub Desktop.
Save glynrob/7500626 to your computer and use it in GitHub Desktop.
<?php
namespace Users\Bundle\ListBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
class UsersController extends Controller
{
/**
* @Route("/users")
* @Template()
*/
public function indexAction($name="")
{
return array('name' => $name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment