in the controller:
and in the view:Code:$dir = new DirectoryIterator(APPLICATION_PATH.'modules/'); foreach ($dir as $fileinfo) { if (!$fileinfo->isDot() && $fileinfo->isDir()) { $dirs[].= $fileinfo->getFilename(); $this->view->module_name = $dirs; } }
Code:<?php foreach($this->module_name as $module_name) : ?> <?php echo $module_name; ?><br /> <?php endforeach; ?>


LinkBack URL
About LinkBacks



Reply With Quote
