public function actionList() { $Tmodel = new ImgType; $model=new Img('search'); $model->unsetAttributes(); // clear any default values if(isset($_GET['Img'])) $model->attributes=$_GET['Img']; Yii::app()->session['myurl'] = $this->createUrl('list'); $this->render('list',array( 'model'=>$model, 'Tmodel'=>$Tmodel, )); }