/** * Manages all models. */ public function actionAdmin() { $model = new FriendLink('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['FriendLink'])) { $model->attributes = $_GET['FriendLink']; } $this->render('admin', array('model' => $model)); }
public function actionflink() { $model = new FriendLink('search'); $model->unsetAttributes(); if(isset($_GET['FriendLink'])) $model->attributes=$_GET['FriendLink']; Yii::app()->session['myurl'] = $this->createUrl('flink'); $this->render('flink',array('model'=>$model)); }