Read path variable in Think PHP

29 Views Asked by At

I am using the format $pathVariable = $request->param('variableName/s', ''); to read path variable from ThinkPHP but am not successful. What is the right way to read path variable from URL?

1

There are 1 best solutions below

0
On
$param = $this->request->param();

like this