how to put class on application.components.MainMenu's li?

@ topic… how to put class on application.components.MainMenu’s li?

not on every li, just on a single specific li of the whole menu.


In your items array do something like that:


    [ ... all other li ... ]






Check the doc about what is possible to set in this class:

hi thanks for the reply… i’m not using CMenu… i’m using MainMenu… this is because i’m using older versions of yii… now don’t ask why, i laugh at myself when somebody do. :))

So, mainmenu is a widget that lies in compoment.

Check your compoment folder and edit as you want the compoment/views/MainMenu.php