I have installed Twitter Bootstrap Framework as a vendor in Symfony 2.1 using composer package manager as a package from github repo. My intention is to “include” some files of this vendor inside of the ::base.html.twig layout directly, without having to create a Bundle to handle this.
How I can access files of a vendor like “vendor/twitter/bootstrap” from within a view ?
Oh sorry, i’ve found my own question when searching on google. I Lost the contents of the form the day I was trying to publish this question while submitting xD And thought it wasn’t published, and today, surprise LOL.
Ty for all the answers, fortunately found the solution by myself. If my experience can help anyone… Since 2.1 version is posible to get the twitter bootstrap package from github and install it as a vendor using composer.phar
In the composer.json file at the root of the project add this to the “require”: {} section:
Then at the “repositories”: {} section add:
Then with node.js for windows installed u can execute:
and
To compile again the docs subfolder that contains the compiled library or…
That compiles the css, js, minified versions too in a bootstrap subfolder
Then, is possible to call and make use of bootstrap this way:
The advantage of this approach is that is possible to update the version of the vendor by simply using:
And compile again.