Created
June 11, 2014 10:02
-
-
Save bichotll/0d01a6963669c107bd21 to your computer and use it in GitHub Desktop.
symfony controller action - how to unsecure but dynamical url parameters example
This file contains 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
/** | |
* 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