I am trying to create a navigation bar based on Twitter’s Bootstrap. I need to access the class attribute of the ul tag inside the
<div id="mainmenu">
<ul id="yw0"> // I need to add the class attribute here.
tag.
I realized this is not possible to do with the available properties in CMenu and I possibly need to create my own class that extends CMenu. I found a tutorial on this here.
My question is in which file I need to create my own class that extends CMenu?
I know there are extensions for Yii to work with Bootstrap. But I prefer to learn how to do it my own way.
Could you please elaborate on this? Did you mean I can create a file named whatever.php and put in the component folder? Then what needs to be added to the import array in the config file?