Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created April 29, 2012 11:07
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/2549450 to your computer and use it in GitHub Desktop.
Save coreymcmahon/2549450 to your computer and use it in GitHub Desktop.
A Symfony action that redirects to another action using the logical name - http://www.symfonycentral.com
<?php
public function indexAction($name)
{
$response = $this->forward('MyCompanyBlogBundle:Blog:show', array(
'id' => 30
));
return $response;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment