Commit 55cc05aa7eff3f5cd2aa42e3361d53418243ce6a

Authored by Mihail
1 parent 35764921

try organize ini settings

backend/components/parsers/config.php
1 1 <?php
2 2 return [
  3 + 'global' =>
  4 + ['ini' => ['upload_max_filesize' => '20M',
  5 + 'post_max_size integer' => '30M',
  6 + ]],
3 7 'csv' =>
4 8 ['web' =>
5 9 ['class' => 'backend\components\parsers\CustomCsvParser',
... ...
backend/controllers/ParserController.php
... ... @@ -68,13 +68,19 @@ class ParserController extends BaseController
68 68 $model = new UploadFileParsingForm();
69 69 // установим режим, 0 - ручная загрузка, 1 - автозагрузка
70 70 $model->mode = $mode;
71   -
  71 + //CustomVarDamp::dumpAndDie(phpinfo());
72 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 82 public function actionResults($mode = 0)
76 83 {
77   -
78 84 $model = new UploadFileParsingForm(['mode' => $mode]);
79 85 $data = [];
80 86 if ($model->load(Yii::$app->request->post())) {
... ...