public function actionLadmin() { $model=new Languages('search'); $model->unsetAttributes(); // clear any default values if(isset($_GET['Languages'])) $model->attributes=$_GET['Languages']; $test=array('guide'=>$this->loadContact(Yii::app()->user->cid),'tours'=>$this->loadTours(),'todo'=>$this->loadUnreported()); $this->render('ladmin',array( 'model'=>$model, 'info'=>$test, )); }
/** * Manages all models. */ public function actionAdmin() { $model = new Languages('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Languages'])) { $model->attributes = $_GET['Languages']; } $this->render('admin', array('model' => $model)); }