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