[eluser]Jon Braud[/eluser]
[quote author="Too Pixel" date="1224262375"]Personally I would prefer to opt for performance and $this->ci->config->item('default_controller');
But you can't get this config item like that. Maybe try something like:
Code:
$RTR =& load_class('Router');
$default_controller = $RTR->default_controller;
Code never tested, that's just an idea that will probably work[/quote]
No need to go that far, essentially all this library does is wrap 1 CSS class and a few lines of PHP.
He just needs to grab the current controllers name and add the CSS class to the element from there, no need to mess around with config items.