php - Set apart functions -


what way: keep functions in 1 file or set apart them? (like database.php, session.php)

my approach split functionalities classes; , put each class 1 file.

if have lot of functions, same - split them thematically separate files , include them when needed.

if work classes, can make use of php's autoloader functionality automatically load php files needed instantiate class.


Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

Delphi Wmi Query on a Remote Machine -