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