Created
July 13, 2014 07:45
-
-
Save scarstens/5cff6185909d3739492b to your computer and use it in GitHub Desktop.
loads classes from a folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns array of features, also | |
* Scans the plugins subfolder "/classes" | |
* | |
* @since 0.1 | |
* @return void | |
*/ | |
protected function load_classes() { | |
// load all files with the pattern *.php from the directory inc | |
foreach( glob( dirname( __FILE__ ) . '/inc/*.php' ) as $class ) { | |
require_once $class; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment