From 7076343338ae3439f3c86f01144818abe8c31978 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Sun, 12 Mar 2023 07:16:23 +0200 Subject: add container helpers; constuct public directory-tree --- helpers/autoload.php | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 helpers/autoload.php (limited to 'helpers/autoload.php') diff --git a/helpers/autoload.php b/helpers/autoload.php deleted file mode 100644 index c4359c6..0000000 --- a/helpers/autoload.php +++ /dev/null @@ -1,43 +0,0 @@ - $basePath) { - - $file = APP_ROOT . $basePath . $classPath .'.php'; - - // if class-file exist, include it - if (file_exists($file)) { - require_once $file; - break; - } - - } - - // // Feel free to extend the fanctionality - // // example: - // // custom (exception) namespaced classes loader - // $customNSclasses = array( - // '\\George\\Class' => 'path/to/George/Class', - // '\\Mary\\Class' => 'path/to/Marias/Class', - // ... - // ); - // if array_key_exists($className) { - // require_once $customNSclasses[$className]; - // } - } -); -- cgit v1.2.3