/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$commercial = new DirectoryIterator('demos'); foreach($commercial as $file) { if($file->isDot() || !$file->isDir()) continue; $path = $file->getPathname().'/templates/'.$file->getBasename().'/templateDetails.xml'; $templatearray[$file->getPathname()] = (string)$xml->name; }