Skip to content

Symfony 2 bundle for integrating with Bootstrap and Fontawesome

License

Notifications You must be signed in to change notification settings

bramtweedegolf/bootstrapify-bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bravesheep Bootstrapify bundle

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";

About

Symfony 2 bundle for integrating with Bootstrap and Fontawesome

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 64.1%
  • JavaScript 35.5%
  • PHP 0.4%