Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created April 30, 2012 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreymcmahon/2558000 to your computer and use it in GitHub Desktop.
Save coreymcmahon/2558000 to your computer and use it in GitHub Desktop.
Example of a controller class based on a complex route - http://www.symfonycentral.com
<?php
namespace Acme\DemoBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
class ArticleController extends Controller
{
public function showAction($culture, $year, $title)
{
// return response in here...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment