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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -