[eluser]SitesByJoe[/eluser]
You could do a good old:
Code:
<?php
$current_controller = $this->uri->segment(1);
echo $current_controller;
?>
And that would certainly work from a view. If you're talking about it happening on the client end you would need to use javascript to get the same effect.
I'm not aware of any problems that would occur using this method.