Implementing a menu's "selected" links in Yii

Hi,

I have two templates to integrate into yii - my front end website and my CMS.

  1. My front end website has top menu that is generated by CMS (database)

  2. CMS top menu which is static menu by me. ("Manage pages", "Manage users", "Manage products") although this menu is static I still want to assign a selected class to the appropriate top menu item.

Eg: If I’m managing some pages on the site the “Mange pages” link should be highlighted and selected. How would I go about this? Something I need to code myself or is there a existing function in Yii that i need to refer to?

Thanks in advance,

Yiistarter.