1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,10 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * Simple autoloader for examples. |
|
5 |
+ * Use a proper PSR-0 autoloader implementation in production. |
|
6 |
+ */ |
|
7 |
+function __autoload($class) |
|
8 |
+{ |
|
9 |
+ require __DIR__ . '/../lib/' . str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php'; |
|
10 |
+} |