A
A
Alexey Alekseev2019-02-18 19:41:20
symfony
Alexey Alekseev, 2019-02-18 19:41:20

How to display Symfony FMEfinderBundle in template?

Hello!
Installed FMEfinderBundle for Symfony.
I connected everything according to the instructions.
It is not clear how to display the Elfinder window in the template.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2019-02-20
@Matmode

To output data to the template, you can use one of the following methods:

<div>
    <iframe src="{{ path('elfinder', {'instance': 'default', 'homeFolder': ''}) }}" style="width: 100%;height: 400px;"></iframe>
</div>
<div>
    {{ render(controller('\\FM\\ElfinderBundle\\Controller\\ElFinderController::showAction', {'instance': 'default', 'homeFolder': ''})) }}
</div>

Personally, I lean more towards the iframe, because. the current controller generates full-fledged web pages
I attach a screenshot with the results
5c6c74afdcb6b418831638.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question