/** * Manages all models. */ public function actionAdmin() { $model = new FileImported('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['FileImported'])) { $model->attributes = $_GET['FileImported']; } $this->render('admin', array('model' => $model)); }
/** * display the log of imported files */ public function actionLogImports() { if (Yii::app()->user->isAdmin()) { $id = $_SESSION['biobank_id']; } else { $id = Yii::app()->user->biobank_id; } $model = new FileImported('search'); $model->unsetAttributes(); // clear any default values $model->biobank_id = $id; if (isset($_GET['FileImported'])) { $model->attributes = $_GET['FileImported']; } $this->render('log_files_imported', array('model' => $model)); }