1
0
www.mikescher.com/demos/blog/protected/components/UserMenu.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');
}
}