Get URI parameter

http://localhost/ExtendFYP/Averify.php?id=$id&code=$code

I want to implement the get route to get the URI parameters ( ?id=$id&code=$code) id and code , how to implement get route, i’m using slim 2 version.
I need help ,