[eluser]Bob Sawyer[/eluser]
Nice idea, I did something similar for a project not too long ago, except that mine required having a bit of code in each controller to check the current file. This seems a bit more elegant.
Problem I'm running into is that my default controller in my routes file is "home" ... so:
$config['main'] = array( anchor('/home','Home'),
anchor('/about','About Us'),
anchor('/contact','Contact Us')
);
This works great if you're actually one mysite.com/home ... but when you first go to mysite.com, you're at the root, not at "home" ... and thus the "Home" menu item is not highlighted with the "current" class.
Is this a shortcoming of your library, or is there another problem going on here?
Thanks,
Bob