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

combine_files doesn't work in a template


2 Posts   255 Views


25 January 2014 at 4:10am Community Member, 6 Posts

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.


29 January 2014 at 9:17pm Forum Moderator, 5511 Posts

Nope you have to use the PHP API for that.