I have these URLs:
How to get controller nam
If you using $this->uri->segment , if urls rewriting rules change, segments name matching will be lost.