public function actionList_links() { if (Yii::app()->user->isGuest) { $this->redirect($this->createAbsoluteUrl('default/index')); } $model = new Links('search'); $model->unsetAttributes(); if (isset($_GET['Links'])) { $model->setAttributes($_GET['Links'], false); } $this->render('links/list_links', array('model' => $model)); }