Yii 1.1: How To add id or class to CMenu items ?

Comparing #1 with #2

Revision #2 was created by Louis Gac Louis Gac on Jul 7, 2014, 10:22:37 AM.

spelling's correction

Content

CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ? It's very easy, you just need to use the 'itemOptions'.

If you want a menu like :
[...]