Yii Sidebar Menu

By default Yii uses zii.widgets.CPortlet widget to display title and zii.widgets.CMenu widget display menu of side bar.

The outcome of these widgets is like


 Operations

   Menu 1

   Menu 2

   Menu 3

Is it possible that i make the outcome as below:-




 Operations

       Menu 1

       Menu 2

       Menu 3

 Operations 2

       Menu 4

       Menu 5 

       Menu 6

Hi

you have to use two Portlets or overrides the widget Portlet to do that

See this link

http://www.yiiframework.com/doc/blog/1.1/en/portlet.menu

How can i have multiple titles using the referenced link? As per my understanding it will only display username as the title, whereas, i want to have multiple titles.

Would you be kind to give me an example of overriding.

Hi


class yourPortlet extends CPortlet {


public $titles; //array of many titles


//override the run() and maybe renderDecoration() methods

}

see also this documentaiton

http://www.yiiframework.com/doc/api/1.1/CPortlet#run-detail