Commit 55cc05aa7eff3f5cd2aa42e3361d53418243ce6a
1 parent
35764921
try organize ini settings
Showing
2 changed files
with
12 additions
and
2 deletions
Show diff stats
backend/components/parsers/config.php
| 1 | <?php | 1 | <?php |
| 2 | return [ | 2 | return [ |
| 3 | + 'global' => | ||
| 4 | + ['ini' => ['upload_max_filesize' => '20M', | ||
| 5 | + 'post_max_size integer' => '30M', | ||
| 6 | + ]], | ||
| 3 | 'csv' => | 7 | 'csv' => |
| 4 | ['web' => | 8 | ['web' => |
| 5 | ['class' => 'backend\components\parsers\CustomCsvParser', | 9 | ['class' => 'backend\components\parsers\CustomCsvParser', |
backend/controllers/ParserController.php
| @@ -68,13 +68,19 @@ class ParserController extends BaseController | @@ -68,13 +68,19 @@ class ParserController extends BaseController | ||
| 68 | $model = new UploadFileParsingForm(); | 68 | $model = new UploadFileParsingForm(); |
| 69 | // установим режим, 0 - ручная загрузка, 1 - автозагрузка | 69 | // установим режим, 0 - ручная загрузка, 1 - автозагрузка |
| 70 | $model->mode = $mode; | 70 | $model->mode = $mode; |
| 71 | - | 71 | + //CustomVarDamp::dumpAndDie(phpinfo()); |
| 72 | return $this->render('index', ['model' => $model]); | 72 | return $this->render('index', ['model' => $model]); |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | +// public function beforeAction($action) | ||
| 76 | +// { | ||
| 77 | +// if($action->actionMethod ='actionResults'){ | ||
| 78 | +// CustomVarDamp::dumpAndDie(phpinfo()); | ||
| 79 | +// } | ||
| 80 | +// } | ||
| 81 | + | ||
| 75 | public function actionResults($mode = 0) | 82 | public function actionResults($mode = 0) |
| 76 | { | 83 | { |
| 77 | - | ||
| 78 | $model = new UploadFileParsingForm(['mode' => $mode]); | 84 | $model = new UploadFileParsingForm(['mode' => $mode]); |
| 79 | $data = []; | 85 | $data = []; |
| 80 | if ($model->load(Yii::$app->request->post())) { | 86 | if ($model->load(Yii::$app->request->post())) { |