![]() |
(Newbie) Detecing requested controller? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: (Newbie) Detecing requested controller? (/showthread.php?tid=14236) |
(Newbie) Detecing requested controller? - El Forum - 12-24-2008 [eluser]Unknown[/eluser] Newbie question - what is the best way for determining the controller being requested? I am trying to create a navigation bar and want to change the div based on the controller. Thanks in advance! (Newbie) Detecing requested controller? - El Forum - 12-24-2008 [eluser]Phil Sturgeon[/eluser] Easiest way would probably be: Code: $this->uri->rsegment(1, ''); |