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?