CodeIgniter: How to 'highlight' the link of the page the user is currently on?
问题 Fairly new to CodeIgniter, still grasping the MVC approach. I'm just wondering what's the best way to solve this: I got my navigation bar highlighting the currently active link like so: <a href="index.hml" id="active">Index</a> <a href="blog.hml">Blog</a> Now, when I go to blog.html I want id="active" to shift accordingly. Usually I'd assign a variable to each link and then set it's value to 'id="active'. Somehow I don't think that's the best way. Any thoughts? Update (12. Sept 2012) Since