Hi,
I have a folder of images on my server for use as page headers. I’d like to set up a TV so I can select which image to use on each page.
As far as I can tell, the only way to get the contents of a directory is to use the @EVAL binding?
@EVAL $files = scandir('./path/to/dir'); return implode('||', array_slice($files, 2));
Is this the best approach, or is there another? It works, but I may have missed something
Thanks,
Peter