Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

combine_files doesn't work in a template

Go to End

2 Posts   854 Views


Community Member, 6 Posts

25 January 2014 at 4:10am

So I tried this:

<% require combine_files("style.css", array(
)) %>

Doesn't work. It spews out a warning:
[Warning] Invalid argument supplied for foreach()

And of course doesn't include the files. Turns out the array is passed as a a string, e.g. "array". Literally.


Forum Moderator, 5523 Posts

29 January 2014 at 9:17pm

Nope you have to use the PHP API for that.