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