Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * rhaco で autoload したかったからつくった
- *
- * @author riaf <riafweb@gmail.com>
- */
- require_once 'rhaco/Rhaco.php';
- Rhaco::import('io.FileUtil');
- $files = FileUtil::ls(RHACO_DIR, true);
- $result = array();
- foreach($files as $file){
- if($file->getExtension() != '.php') continue;
- $result[$file->getOriginalName()] = str_replace('/', '.', substr(str_replace(RHACO_DIR, '', $file->getFullname()), 0, -4));
- }
- var_export($result);
Add Comment
Please, Sign In to add comment