Is it possible to include and entire directory, say i want to include
class (folder)
class1 (folder)
class1main.php
class1second.php
class2 (folder)
class2main.php
Or do i need to include every file one by one?
Using this works
foreach(glob('../application/classes/*/*.php') as $ClassFilename) {
require_once($ClassFilename);
}
My question now is it is the right solution to my problem or is there a better way