salmane
salmane

Reputation: 4849

Fuelphp Asset:: error

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.

Upvotes: 1

Views: 707

Answers (2)

Frank de Jonge
Frank de Jonge

Reputation: 1727

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

Upvotes: 3

salmane
salmane

Reputation: 4849

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'))

Upvotes: 3

Related Questions