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 th
The tab styling is not a PHP but a CSS issue. Look up hover
for color changes. They are often done with ul
's, but not always. You can learn a lot here.
As for list generation, a helper would probably be a good idea. You'll probably want the same code available for multiple different controls/methods and views, so having a generic get_menu(); or create_menu(); would be perfect in a helper file. You might want to add it to your MY_html_helper.php.
(Future readers, please read comments)