Controller
public function actions() { return [ 'error' => [ 'class' => 'yii\web\ErrorAction', ], 'image-upload' => [ 'class' => 'vova07\imperavi\actions\UploadAction', 'url' => '/images/', // Directory URL address, where files are stored. 'path' => '@webroot/images/' // Or absolute path to directory where files are stored. ], 'images-get' => [ 'class' => 'vova07\imperavi\actions\GetAction', 'url' => '/images/blog/', // Directory URL address, where files are stored. 'path' => '@webroot/images/blog/', // Or absolute path to directory where files are stored. 'type' => '0', ], 'files-get' => [ 'class' => 'vova07\imperavi\actions\GetAction', 'url' => '/files/blog/', // Directory URL address, where files are stored. 'path' => '@webroot/files/blog/', // Or absolute path to directory where files are stored. 'type' => '1',//GetAction::TYPE_FILES, ], 'file-upload' => [ 'class' => 'vova07\imperavi\actions\UploadAction', 'url' => '/files/blog/', // Directory URL address, where files are stored. 'path' => '@webroot/files/blog/' // Or absolute path to directory where files are stored. ], ]; } _from.php
<?= $form->field($model, 'description')->widget(Widget::classname(), [ 'settings' => [ 'lang' => 'ru', 'minHeight' => 300, 'pastePlainText' => true, 'buttonSource' => true, 'plugins' => [ 'clips', 'fullscreen' ], 'imageUpload' => '/images', 'imageManagerJson' => Url::to(['/blog/images-get']), ] ]);?> The following error occurs:
http: //newblog.local/images 404 (Not Found)
Created the images folder in the backend, frontend and even common in the hope that it will fly the picture somewhere in one of the three)
Settings cnc did on this guide
Widget vova07 / yii2-imperavi-widget