bravesheep/bootstrapify-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony 2 bundle for integrating with Bootstrap and Fontawesome

v3.0.0 2014-06-04 10:17 UTC

This package is auto-updated.

Last update: 2023-05-25 21:01:13 UTC


README

Installation

Add the BsBootstrapifyBundle to assetic and define a global Twig variable named locale:

assetic:
    bundles:
        - BsBootstrapifyBundle

twig:
    globals:
        locale: "%locale%"
    form:
        resources:
            - "BsBootstrapifyBundle::form.html.twig"

To include the Bootstrap Datepicker add the following to your layout:

{% block javascripts %}
  {{ parent() }}
  {% javascripts filter='?yui_js'
    '@BsBootstrapifyBundle/Resources/js/bootstrap-datepicker.js'
  %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
  {% endjavascripts %}
  <script type="text/javascript" src="{{ asset('bundles/bsbootstrapify/js/locale/datepicker/' ~ locale ~ '.js') }}"></script>
{% endblock %}

The main less source file can be extended by importing it in your own less file. Use the following statement to import the main less file (assumed the file is located in Bundle/Resources/less/):

@import "../../../../../vendor/bravesheep/bootstrapify-bundle/Bs/BootstrapifyBundle/Resources/less/bootstrap-fa-s2.less";