[eluser]Teks[/eluser]
I don't know if I understood you correctly:
[quote author="Solarpitch" date="1231126576"]Hi,
I have this little problem I'm trying to figure out. I have a tabular menu in my header.php file. Anytime a page is selected the style of the tab will change (ie. the tab will be highlighted for that specific page)[/quote]
What is making me confused is the sentence "anytime a page is selected(...)". What does 'selected' mean, exactly?
If it means "every time the visitor's cursor moves over the menu link and clicks on it", then what you want can be achieved with CSS and/or javacript alone, and some carefully defined selectors ("a:hover", "a:active", etc.).
It, may, however, mean instead, that you wish to highlight in the menu the *currently visited page* - ie., the page that the visitor is currently on. If that is the case, my suggestion would be as follows - and please, keep in mind that there might be many different solutions to this problem.
I imagine, that you already have a function that builds the menu. If I interpret the description of your problem correctly, it seems that the menu appears in the header of your pages, but you've placed your menu-building function in your controller. If that is the case, I would suggest as a first step, that you perhaps place the menu-building function into a HELPER, which the header view file can call directly.
Your menu-building function should then take as one of its parameters the id of the page where the menu will be displayed. As the function iterates through all your pages, building the items and links of the menu, if it comes across the *current* page, it should add your specific css class. The function then returns the fully-formatted menu to the header view, which simply displays it.
I hope this helps.