Autoload Classes

<?php
function __autoload($class_name) { include $class_name . '.php'; }

$class1 = new class1();
$class2 = new class2();
?>

0 Comments

You must be logged in to post a comment.