PHP Classes

File: example/index.file.loader.php

Recommend this page to a friend!
  Classes of Leonardo Mauro Pereira Moraes  >  FPHP Loader  >  example/index.file.loader.php  >  Download  
File: example/index.file.loader.php
Role: Example script
Content type: text/plain
Description: Example script
Class: FPHP Loader
Load one or more PHP scripts from a directory
Author: By
Last change:
Date: 5 years ago
Size: 457 bytes


Class file image Download

/* Add the autoload */

/* Call the class `FileLoader` */
use \FPHP_Loader\FileLoader;

* Example: Set extension, loading file and 'path'
$ext = ['html', 'htm'];
$f_loader = new FileLoader();
$f_loader->load_dir('dir_example/'); /* Don't include files with wrong extensions */


For more information send a message to info at phpclasses dot org.