For my Codeigniter (v 3.1.7) project, i create debug menu (like prestashop) with all informations of the login user, error of the page... to debug quickly the page. 

So, i want to call the name of the controller and the name of the function.
If i'm on the page "login" i want to display:

```
Controller: Account
Function: Login

```

I find on [this post](https://stackoverflow.com/questions/2062086/how-to-get-controller-action-url-informations-with-codeigniter) i tips for my problem but we use Url REWRITING and the name of the url is not the real name of the controller.