do something based on url / route

what is the best way to check whether we are requesting a certain url / route in a view file?

i have to show a user list (index.php view file including _view.php), and show all the works related to each user in every user record of the list. i did it easily, by modifying _view.php.

the problem is that _view.php is also included by another file: view.php

i would like to know if we are requesting INDEX or VIEW

how would you do that?

The simplest solution would be to send a parameter to the _view when rendering

great, thanks. i wondered if there was any particular trick using the framework.

well, that’s perfect. :)