Active menu tabs with codeigniter

Posted by CyberJunkie on Stack Overflow See other posts from Stack Overflow or by CyberJunkie
Published on 2011-06-28T18:47:05Z Indexed on 2011/06/29 8:22 UTC
Read the original article Hit count: 274

Filed under:
|
|

Which method can be used in Codeigniter to achieve active menu tabs?

For example I have a user menu Profile Friends Messages Logout

When I'm in the profile controller the URL is domain.com/profile/some_function The Profile tab should be active by changing the background color for example.

I would usually add php to the tabs to check for their corresponding URL segment and I would change the style of the active tab. In Codeigniter should I implement a helper? What function can I easily use in tabs?

© Stack Overflow or respective owner

Related posts about php

Related posts about css