Skip to content

Instantly share code, notes, and snippets.

@bichotll
Created June 11, 2014 10:02
Show Gist options
  • Save bichotll/0d01a6963669c107bd21 to your computer and use it in GitHub Desktop.
Save bichotll/0d01a6963669c107bd21 to your computer and use it in GitHub Desktop.
symfony controller action - how to unsecure but dynamical url parameters example
/**
* Test with / on the url
*
* @Route("/test/{test}", requirements={"test" = "(.*)"})
* @Method("GET")
* @Template()
*/
public function testAction($test) {
if($otherLinks)
{
$otherLinks = explode('/', $otherLinks);
//do stuff
...
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment