Esempio n. 1
0
 /**
  * Adding a device pulls the expiration time from a pre existing device
  *
  * @version  0.6.0
  * @since  0.6.0
  * @return [type] [description]
  */
 public function actionAdddevice()
 {
     $cc_format_mdl = new CCFormat();
     $paypal_com = new paypal();
     $purchase_mdl = new Purchase();
     if (!empty(Yii::$app->request->post()) && $this->actionCreate()) {
         \Yii::$app->getSession()->setFlash('success', 'Device added to account.');
         return true;
     }
     return $this->render('adddevice', ['cc_format_mdl' => $cc_format_mdl, 'device_count_options_mdl' => DeviceCountOptions::findAll(['deleted_at' => null]), 'purchase_mdl' => $purchase_mdl]);
 }