Autoload Class Class

function ter_autoload($class_name){ include $class_name . '.php'; }
spl_autoload_register('ter_autoload');
if(function_exists('__autoload')){ spl_autoload_register('__autoload'); }

$classname  = new ClassName();

0 Comments

You must be logged in to post a comment.