Reputation: 1391
I want to know where to include files that are used extensively in the code.e.g: a "functions.php" file that contains common functions used amongst all the controllers.Since it doesn't look right to include it in every controller, where should I put the "include" statement it?
Upvotes: 0
Views: 115
Reputation: 754
If you're using composer, you can specify a directive that includes automatically some files : https://getcomposer.org/doc/04-schema.md#files
Upvotes: 2