# Upgrade to Slim 3 - how to change request & parameters?

**URL:** <https://discourse.slimframework.com/t/upgrade-to-slim-3-how-to-change-request-parameters/3168>\
**Category:** Questions\
**Created:** [May 13, 2019, 11:37am UTC](https://discourse.slimframework.com/t/upgrade-to-slim-3-how-to-change-request-parameters/3168 "2019-05-13T11:37:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luftikus143](https://avatars.discourse-cdn.com/v4/letter/l/bcef8e/32.png) [@luftikus143](https://discourse.slimframework.com/u/luftikus143)\
**Post date:** [May 13, 2019, 11:37am UTC](https://discourse.slimframework.com/t/upgrade-to-slim-3-how-to-change-request-parameters/3168/1 "2019-05-13T11:37:40Z")

</div>

I am upgrading from v2 to v3. Unfortunately, it has been years that I implemented the code, and I am not very much used to the API configuration.

The URL looks like this

```
https://URL/api/variables_gegslive_new/find/gel13

```

and the v2 code like this:

```
$app->get('/variables_gegslive_new/find/:query', function ($query) use ($app)

```

How does this translates into Slim v3? This seems to be not working properly:

```
$app->get('/variables_gegslive_new/{find}/{id}', function ($request, $response, $args) 
{
	echo "iii";
	echo $request;
	include ("file.php");
}

```

Strangely enough, if I delete the line “echo $request” the function “$app-\>…” is not being called, or at least, run through.

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![Mikalay](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/mikalay/32/720_2.png) [@Mikalay](https://discourse.slimframework.com/u/Mikalay)\
**Post date:** [May 13, 2019, 1:16pm UTC](https://discourse.slimframework.com/t/upgrade-to-slim-3-how-to-change-request-parameters/3168/2 "2019-05-13T13:16:39Z")

</div>

Perhaps the logic that is embedded in the file **`file.php`** prevents the processing of the request.
