add contract
This commit is contained in:
@@ -19,6 +19,7 @@ use common\models\ProductCategory;
|
||||
use common\models\Product;
|
||||
use common\models\TransferTicketSearch;
|
||||
use common\models\TicketType;
|
||||
use frontend\models\UserCartForm;
|
||||
|
||||
/**
|
||||
* TransferController implements the CRUD actions for Transfer model.
|
||||
@@ -337,4 +338,15 @@ class TransferController extends Controller
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function actionUserCart(){
|
||||
|
||||
$model = new UserCartForm();
|
||||
if ($model->load(Yii::$app->request->post()) && $model->payout()) {
|
||||
return $this->redirect(['user-cart']);
|
||||
}
|
||||
$model->run();
|
||||
return $this->render("usercart",[ 'model' => $model]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user