Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1e9eb73

Browse files
create startup file for autoload class in system.
1 parent 093e0d5 commit 1e9eb73

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎System/Startup.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
function autoload($class) {
4+
$file = SYSTEM . str_replace('\\', '/', $class) . '.php';
5+
6+
if (file_exists($file)) {
7+
require_once $file;
8+
} else {
9+
throw new Exception(sprintf('Class { %s } Not Found!', $class));
10+
}
11+
}
12+
13+
spl_autoload_register('autoload');

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /