Commit be449e0677f86c25a3eb758561fc94ddd8952301
1 parent
923a6649
test privat for extrem
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
frontend/controllers/PrivatController.php
@@ -75,7 +75,14 @@ | @@ -75,7 +75,14 @@ | ||
75 | } | 75 | } |
76 | } | 76 | } |
77 | } | 77 | } |
78 | - | 78 | + public function beforeAction($action) |
79 | + { | ||
80 | + if ($action->id == 'callback') { | ||
81 | + $this->enableCsrfValidation = false; | ||
82 | + } | ||
83 | + | ||
84 | + return parent::beforeAction($action); | ||
85 | + } | ||
79 | 86 | ||
80 | public function actionCallback() | 87 | public function actionCallback() |
81 | { | 88 | { |
@@ -88,6 +95,7 @@ | @@ -88,6 +95,7 @@ | ||
88 | fclose($myFile); | 95 | fclose($myFile); |
89 | 96 | ||
90 | print_r($data); | 97 | print_r($data); |
98 | + die(); | ||
91 | } else { | 99 | } else { |
92 | print_r(Url::to('/ru/order/callback', true)); | 100 | print_r(Url::to('/ru/order/callback', true)); |
93 | print_r(\Yii::$app->session->get('data')); | 101 | print_r(\Yii::$app->session->get('data')); |