From 55cc05aa7eff3f5cd2aa42e3361d53418243ce6a Mon Sep 17 00:00:00 2001 From: Mihail Date: Fri, 25 Sep 2015 18:10:48 +0300 Subject: [PATCH] try organize ini settings --- backend/components/parsers/config.php | 4 ++++ backend/controllers/ParserController.php | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/backend/components/parsers/config.php b/backend/components/parsers/config.php index de0fcdf..78f141e 100644 --- a/backend/components/parsers/config.php +++ b/backend/components/parsers/config.php @@ -1,5 +1,9 @@ + ['ini' => ['upload_max_filesize' => '20M', + 'post_max_size integer' => '30M', + ]], 'csv' => ['web' => ['class' => 'backend\components\parsers\CustomCsvParser', diff --git a/backend/controllers/ParserController.php b/backend/controllers/ParserController.php index 588d442..ec83cb5 100644 --- a/backend/controllers/ParserController.php +++ b/backend/controllers/ParserController.php @@ -68,13 +68,19 @@ class ParserController extends BaseController $model = new UploadFileParsingForm(); // установим режим, 0 - ручная загрузка, 1 - автозагрузка $model->mode = $mode; - + //CustomVarDamp::dumpAndDie(phpinfo()); return $this->render('index', ['model' => $model]); } +// public function beforeAction($action) +// { +// if($action->actionMethod ='actionResults'){ +// CustomVarDamp::dumpAndDie(phpinfo()); +// } +// } + public function actionResults($mode = 0) { - $model = new UploadFileParsingForm(['mode' => $mode]); $data = []; if ($model->load(Yii::$app->request->post())) { -- libgit2 0.21.4