Answer the question
In order to leave comments, you need to log in
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
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>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question