Namelus
(Chevalier51)
January 24, 2014, 12:05am
1
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
konapaz
(Konapaz)
January 24, 2014, 10:39am
2
Hi
you have to use two Portlets or overrides the widget Portlet to do that
ani
(Aneesh)
January 24, 2014, 12:00pm
3
Namelus
(Chevalier51)
January 24, 2014, 6:43pm
4
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.
Namelus
(Chevalier51)
January 24, 2014, 6:44pm
5
Would you be kind to give me an example of overriding.
konapaz
(Konapaz)
February 4, 2014, 2:07pm
6
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