Saturday, 15 May 2010

symfony2 - Error links css using Assetic -



symfony2 - Error links css using Assetic -

i have layout used several bundles set css files in web/dashboard /css/.

when utilize simple method:

<link rel="stylesheet" href="{{ asset('dashboard/css/bootstrap.min.css') }}" />

the style applied , html code in source code

<link rel="stylesheet" href="/boutique/web/dashboard/css/bootstrap.min.css" />

but when utilize assetic

{% stylesheets 'dashboard/css/*' filter='cssrewrite' %} <link rel="stylesheet" href="{{ asset_url }}" /> {% endstylesheets %}

i have many errors in style , have code html in source code

<link rel="stylesheet" href="/boutique/web/app_dev.php/css/ac0081b_part_1_ace-fonts_1.css" />

and in mod prod style not work , have html code

<link rel="stylesheet" href="/boutique/web/css/ac0081b.css" />

as said , css files in web/dashboard /css/

and in mod prod style not work , have html code

are sure deployed assets ?

// install assets calling app/console assets:install --env=prod // dump assets real files app/console assetic:dump --env=prod

i have many errors in style , have code html in source code

i think code seeing way assetic works.

symfony2 assetic

No comments:

Post a Comment