/**
  * Creates a new FeesCategoryDetails model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate($fcc_id)
 {
     $model = new FeesCategoryDetails();
     if (!empty($fcc_id)) {
         $feescc_id = $fcc_id;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
     if ($model->load(Yii::$app->request->post())) {
         $model->attributes = $_POST['FeesCategoryDetails'];
         $model->fees_details_category_id = $feescc_id;
         $model->created_by = Yii::$app->getid->getId();
         $model->created_at = new \yii\db\Expression('NOW()');
         if ($model->save()) {
             return $this->redirect(['fees-collect-category/view', 'id' => $model->fees_details_category_id]);
         }
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }