Commit dc6da0ad904d410a403958c5030679be7549c3e6
1 parent
d5ca44d2
Adding htaccess
Showing
3 changed files
with
7 additions
and
11 deletions
Show diff stats
backend/views/image/index.php
| @@ -9,16 +9,11 @@ $this->title = 'Image cropper'; | @@ -9,16 +9,11 @@ $this->title = 'Image cropper'; | ||
| 9 | ?> | 9 | ?> |
| 10 | <?= Html::a('Gallery', ['image/gallery']) ?> | 10 | <?= Html::a('Gallery', ['image/gallery']) ?> |
| 11 | <?php $form = ActiveForm::begin(['options' => ['enctype'=>'multipart/form-data']]); ?> | 11 | <?php $form = ActiveForm::begin(['options' => ['enctype'=>'multipart/form-data']]); ?> |
| 12 | -<?= Html::dropDownList('crop_id', null, $ukrSeeds, ['id' => 'ukr_seeds']) ?> | ||
| 13 | -<?= FileInput::widget([ | ||
| 14 | - 'name' => 'imageFiles[]', | ||
| 15 | - 'language' => 'ru', | ||
| 16 | - 'options' => ['multiple' => true, 'accept' => 'image/*'], | ||
| 17 | - 'pluginOptions' => [ | ||
| 18 | - 'previewFileType' => 'image', | ||
| 19 | - 'maxFileCount' => 20 | ||
| 20 | - ] | ||
| 21 | -]); ?> | 12 | + <?= $form->field($model, 'imageFiles[]')->widget(FileInput::classname(), [ |
| 13 | + 'options' => ['accept' => 'image/*', 'multiple' => true], | ||
| 14 | + 'language' => 'ru' | ||
| 15 | + ]); ?> | ||
| 16 | + <?= Html::dropDownList('crop_id', 1, $ukrSeeds, ['id' => 'ukr_seeds']) ?> | ||
| 22 | <?php $form->end(); ?> | 17 | <?php $form->end(); ?> |
| 23 | <?= Html::buttonInput('Draw', ['onclick' => 'js:draw();', 'style' => 'display : block']) ?> | 18 | <?= Html::buttonInput('Draw', ['onclick' => 'js:draw();', 'style' => 'display : block']) ?> |
| 24 | <canvas/> | 19 | <canvas/> |
| 1 | +php_value post_max_size 80M |
backend/web/index.php
| @@ -13,6 +13,6 @@ $config = yii\helpers\ArrayHelper::merge( | @@ -13,6 +13,6 @@ $config = yii\helpers\ArrayHelper::merge( | ||
| 13 | require(__DIR__ . '/../config/main.php'), | 13 | require(__DIR__ . '/../config/main.php'), |
| 14 | require(__DIR__ . '/../config/main-local.php') | 14 | require(__DIR__ . '/../config/main-local.php') |
| 15 | ); | 15 | ); |
| 16 | - | 16 | +ini_set('post_max_size','80M'); |
| 17 | $application = new yii\web\Application($config); | 17 | $application = new yii\web\Application($config); |
| 18 | $application->run(); | 18 | $application->run(); |