Location: PHPKode > projects > PH7Xsl - XSLT Template Engine > XSLT-Template-Engine-1.1.35/Library/_autoload.inc.php
<?php
/**
 * @title            Autoloader Classes
 *
 * @author           Pierre-Henry Soria <hide@address.com>
 * @copyright        (c) 2012, Pierre-Henry Soria. All Rights Reserved.
 * @license          GNU General Public License.
 * @category         Library
 * @package          PH7 / Library
 * @version          1.1
 */

namespace PH7\Library;
defined('PH7') or exit('Restricted access');

// Autoloading Classes Files
spl_autoload_register(function($sClass)
{
    // Hack to remove namespace and backslash
    $sClass = str_replace(array(__NAMESPACE__ . '\\', '\\'), '/', $sClass);

    if(is_file(__DIR__ . $sClass . '.class.php'))
        require __DIR__ . $sClass . '.class.php';

});
Return current item: PH7Xsl - XSLT Template Engine