FuelPHP - Use Asset it Twig template -
i'm starting using fuelphp. currently, i'm able display wonderful page without images or style. i'm happy. :p
but insert css , images. so, i've tried used «asset» function, described in documentation (http://fuelphp.com/docs/classes/asset/config.html). when insert «<script src="{{ asset::js('bootstrap.min.js') }}"></script>» in template, got error:
twig_error_syntax [ error ]: unexpected token "punctuation" of value ":" ("end of print statement" expected) in "index.twig" @ line 223
what's wrong? how can use asset:: ? lot (and sorry if it's noob's question :/)
aha! i've found how works. it's not asset::css
asset_css
, generates link
tag. {{ asset_css('style.css')|raw }}
perfect.
Comments
Post a Comment