Fuelphp Asset:: error

浪尽此生 提交于 2019-12-11 08:06:36

问题


Just testing out Fuelphp.. was wondering if anyone is aware of the issue with Asset:: call I implemented it in a template and got an error ( error view : 'url') thanks

ps: I guess i need to set Asset::add_path(??) , I tried Asset::add_path('/assets/') but that didnt do it.


回答1:


Due to inaccurate documentation i had the wrong syntax from the example :

Asset::css('main.css')

the correct syntax is :

Asset::css(array('main.css'))



回答2:


The documentation is actually acurate now. And Asset::css('main.css') is also supported.



来源:https://stackoverflow.com/questions/5505065/fuelphp-asset-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!