Answer the question
In order to leave comments, you need to log in
How to include images for mcelfinder in symfony2?
Hello, I have a problem when including css files for elfinder. I do the following, I include all css files in the template:
{% block stylesheets %}
{{ parent() }}
{% stylesheets
'@FMElfinderBundle/Resources/public/css/*'
%}
<link rel="stylesheet" href="{{ asset(asset_url) }}" />
{% endstylesheets %}
{% endblock %}
GET http://site.loc/img/progress.gif 404 (Not Found)
Answer the question
In order to leave comments, you need to log in
Use cssrewrite option
{% stylesheets '@FMElfinderBundle/Resources/public/css/*' filter='cssrewrite' %}
<link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
{% endstylesheets %}
php app/console assets:install --symlink
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question