Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Как сохранять изображения в папку поста #117

Open
novoselovmaks opened this issue Mar 29, 2018 · 0 comments

Comments

@novoselovmaks
Copy link

Приветствую, Михаил.

Есть потребность сохранять изображения в отдельные папки, по id поста (или любой другой сущности).

В основном конфиге расширения я могу задать свой класс с нужной мне логикой, например:

'class' => 'common\classes\PostPathElfinder',

Но как передать в класс common\classes\PostPathElfinder id поста?

хочется примерно так в view:

    <?= $form->field($model, 'content')->widget(CKEditor::className(), [
        'editorOptions' => ElFinder::ckeditorOptions('elfinder', ['item_id' => '$model->id']),
    ]);
    ?>

Возможно ли такое в текущей версии?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant