Hello,
I use the the folliwing code:
/**
* @Get(
* '/{sample}'
* )
* @param $sample
* @return \Phalcon\Http\Response
*/
public function singleAction($sample)
{
return ResponseUtil::createJSONResponse (
HTTPStatusCodeEnumeration::OK,
true,
'yes, found',
$sample
);
}
$sample looks like this:
$sample = ABC123456789/12 -> returns: ROUTE NOT FOUND
$sample = ABC123456789 -> returns: ABC123456789
What do I have to do to make the router ignore the forward-slash in the sample-parameter?
Url-Encoding the forward-slash with "%2F" is not working. It destroys the routing functionality.
Thank you for your help!