I am passing multiple parameters in url like
http://website.com/controller/action/para1/para2/para3/para4/para5
Now I have to access para4
How could I access para4 ?
Edit 2 : output of
debug($this->request->params)
[
'plugin' => null,
'controller' => 'ServiceRequests',
'action' => 'checkout',
'_ext' => null,
'pass' => [
(int) 0 => '7e441d08-fdb2-4f86-9a36-d15c61a8a4f0',
(int) 1 => 'b95c0ca1-7782-4621-ad37-cccf697c777c',
(int) 2 => '3df2d1c5-18c6-4c4b-a3bf-c763ce1b41c7',
(int) 3 => 'ac1f0acd-b7d2-4d61-b37d-4990e4774392',
(int) 4 => '1',
(int) 5 => '338ae9f9-0973-4943-b6e1-c12a7713af89'
],
'isAjax' => false
]
$ar[3]or any index value that can be used to access any part of parameters or URL