/** * Manages all models. */ public function actionIndex() { $model = new LanguageModel('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['LanguageModel'])) $model->attributes = $_GET['LanguageModel']; $this->render('index', array( 'model' => $model, )); }