2015-09-10, 04:50:55
(2015-09-09, 09:03:12)Tyblitz Wrote: What about doing ascandir
onGSTHEMESPATH . $TEMPLATE . '/assets/images/'
, then prepend global$SITEURL
to each result and output. Voila.
Final solution......
Code:
$folder = GSDATAUPLOADPATH . 'projects';
$images = array_slice(scandir($folder), 2);
Once I had the file names, I had to create the src url for the <img />
Code:
$path = get_site_url(false) . "data/uploads/projects/";
Then when creating the <img /> I did the following...
Code:
echo "<img class='project' src='" . $path . $i . "' />";
Thank you both for all your help.... It just seems that glob() was not going to work.