Created
April 30, 2012 12:43
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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