Created
July 31, 2022 02:39
-
-
Save catwhocode/d6ad790ddf6074ec29b95534d7256475 to your computer and use it in GitHub Desktop.
REQUIREd all php files in certain folders
This file contains hidden or 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
<?php | |
$dir = __DIR__ . '/routes/'; | |
$files = glob($dir . "*.php"); | |
foreach($files as $file) | |
{ | |
require $file; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment