$app->get('/mobile/byCategory/{id}{offset}{random}', function ($request, $response, $args)
{
$categoryId = $args['id'];
$page = $args['offset'];
$random = $args['random'];
}
I am sending request using Retrofit 2 from mobile device like this successfully:
…/mobile/byCategory/4610
Where
46 is category id
1 is offset
0 is random
But when i reach at offset 10 like
…/mobile/byCategory/46100
now slim3 retrieves parameters as
461 category id (but i send 46)
0 offset (but i send 10)
random is also 0
Please tell me the proper way to receive parameters. I will be very thankful.