public function actionList() { $model=new Custom('search'); $model->unsetAttributes(); if(isset($_GET['Custom'])) $model->attributes=$_GET['Custom']; Yii::app()->session['myurl'] = $this->createUrl('list'); $this->render('list',array( 'model'=>$model, )); }