1
1
1alexandr2015-07-01 15:33:41
css
1alexandr, 2015-07-01 15:33:41

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 %}

when elfinder opens, the images are not loaded, the paths to them are written in these css files.
The paths to the images are specified incorrectly, how can I fix this so as not to edit the code of these css.
GET http://site.loc/img/progress.gif 404 (Not Found)

Maybe I'm doing something wrong, please tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jaxel, 2015-07-02
@jaxel

Use cssrewrite option

{% stylesheets '@FMElfinderBundle/Resources/public/css/*' filter='cssrewrite' %}
    <link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
{% endstylesheets %}

Or just include styles without assets.
Are the resources on the web installed?
php app/console assets:install --symlink

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question