1.5. Class autoloading

Buan uses the SPL's spl_autoload_register() function in order to autoload your application's classes. This has the major benefit of allowing you to register your own autoload functions in addition to Buan's without them overriding each other.

Using Buan's Autoloader

Buan core class loader is a simple search-and-load affair which may very well be suitable for your own auto-loading requirements.

<?php
BuanAutoLoader::addClassPath('/home/my-app/lib/my-classes');

$A = new MyMintClass();
?>