add contract

This commit is contained in:
2016-01-25 01:43:19 +01:00
parent fd4d38ab44
commit df14401b28
47 changed files with 2868 additions and 766 deletions

View File

@@ -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]);
}
}