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