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