public function actionUpdate($id)
{
$umodel = User::model()->findByPk($this->id);
$model=$this->loadModel($id);
if(isset($_POST['Category']))
{
$model->attributes=$_POST['Category'];
if($model->save())
Yii::app()->user->setFlash('success',Yii::t('update','UPDATED_SUCCESSFULLY'));
$this->redirect(array('view','id'=>$model->id));
return $model;
}
$this->render('update',array(
'model'=>$model,'umadel'=>$umodel
));
}