17 lines
254 B
PHP
17 lines
254 B
PHP
|
<?php
|
||
|
|
||
|
Yii::import('zii.widgets.CPortlet');
|
||
|
|
||
|
class UserMenu extends CPortlet
|
||
|
{
|
||
|
public function init()
|
||
|
{
|
||
|
$this->title=CHtml::encode(Yii::app()->user->name);
|
||
|
parent::init();
|
||
|
}
|
||
|
|
||
|
protected function renderContent()
|
||
|
{
|
||
|
$this->render('userMenu');
|
||
|
}
|
||
|
}
|