Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_autoloader($class) {
- include 'classes/' . $class . '.class.php';
- }
- spl_autoload_register('my_autoloader');
- //to user when there are auto load conflicts, ex: using Smarty
- //it is possible to register multiple functions to the auto load stack that will be checked sequencially
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement