Providing Bootstrap Assets

Permalink
I followed the steps from the assets screencast explaining how to provide assets for a custom theme. I used this code:

<?php
namespace Application\Theme\KRCQ;
use Concrete\Core\Page\Theme\Theme;
class PageTheme extends Theme {
   public function registerAssets()
   {
      $this->providesAsset('javascript', 'bootstrap/*');
      $this->providesAsset('css', 'bootstrap/*');
   }
}


I've removed and added the theme, activated it, but C5 is still loading the bootstrap assets I'm providing, which in turn is causing a conflict. I've also tried renaming the theme from KRCQ to Test, thinking the uppercase text was the issue, but that wasn't it either.

Any ideas?

leinteractive
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi leinteractive,

Do you want to require that concrete5 supplies your theme with Bootstrap CSS and JavaScript or do you want to provide the Bootstrap CSS and JavaScript with your theme?