Symfony2 Jquery Twitter Bootstrap and Font awesome as public resource

under web project create public folder then put all resource there, here is mine as an example for you :






ok, now here is how to add them (css and js) to the layout :

{% block stylesheets %}
{% stylesheets
<link rel=”stylesheet” href=”{{ asset_url }}” />
{% endstylesheets %}
{% endblock %}

{% block javascripts %}
{% javascripts filter=”” output=”js/core.js” debug=true
<script type=”text/javascript” src='{{ asset_url }}’></script>
{% endjavascripts %}
{% endblock %}




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s