This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Unable to include Boostrap theme in my SF2 project

Discuss installing Symfony 2 here

Unable to include Boostrap theme in my SF2 project

by crmpicco » Wed Apr 16, 2014 11:12 am

I am trying to configure a Bootstrap theme with Assetic in my SF2 project, however I am experiencing an issue when doing a dump with Assetic.

Code: Select all
# Assetic Configuration
assetic:
    debug:          %kernel.debug%
    use_controller: false
    bundles:        [ ]
    java: /usr/bin/java
    filters:
        cssrewrite: ~
        cssembed:
          jar: %kernel.root_dir%/Resources/java/cssembed-0.4.5.jar
        yui_js:
          jar: %kernel.root_dir%/Resources/java/yuicompressor.jar
        #lessphp:
         # file: %kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php
          #apply_to: "\.less$"
    assets:
        jquery_js:
            inputs:
                - '%kernel.root_dir%/../components/jquery/jquery.min.js'
            filters: [?yui_js]
        bootstrap_js:
            inputs:
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/transition.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/alert.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/modal.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/dropdown.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/scrollspy.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/tab.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/tooltip.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/popover.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/button.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/collapse.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/carousel.js'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/js/affix.js'
            filters: [?yui_js]
        bootstrap_less:
            inputs:
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/less/bootstrap.less'
                - '%kernel.root_dir%/../vendor/twitter/bootstrap/less/bootswatch.less'
            filters: [cssembed]


When I do a assetic:dump I get a "part_1" file:

Code: Select all
18:04:02 [file+] /var/www/vhosts/dev/dev_ayrshireminis/app/../web/assetic/bootstrap_less_bootstrap_1.less
18:04:02 [file+] /var/www/vhosts/dev/dev_ayrshireminis/app/../web/assetic/bootstrap_less_bootswatch_2.less
18:04:02 [file+] /var/www/vhosts/dev/dev_ayrshireminis/app/../web/css/425e28c.css
18:04:02 [file+] /var/www/vhosts/dev/dev_ayrshireminis/app/../web/css/425e28c_part_1.css


Is there a way I can get this working so I have include all the Bootstrap code to allow me to import this theme?

However, this doesn't show up in the source - only 425e28c.css does.

Basically I am trying to install the theme from http://bootswatch.com/superhero/ in my project, but having no luck so far.

Thanks.
crmpicco
Junior Member
 
Posts: 1
Joined: Wed Apr 16, 2014 11:08 am