bravesheep / bootstrapify-bundle
Symfony 2 bundle for integrating with Bootstrap and Fontawesome
Installs: 2 680
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Language:CSS
Requires
- symfony/symfony: >=2.3.0
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";