Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function __autoload($className){
- $file = str_replace('\\', '/', 'ROOTDIR OF PROJECT'.$className.'.php');
- if(!file_exists($file)){
- print 'Connot find class file in "'.$file.'"';
- exit;
- }else{
- include $file;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement