Skip to content
Snippets Groups Projects
Select Git revision
  • fe7bd6602f41dd728394f958bbdee7de40155bb1
  • master default
  • test/issue-1775
  • rave
  • ORIGINAL_2007
5 results

configsample.inc.php

Blame
  • configsample.inc.php 268 B
    <?php
    
    function __autoload($class)
    {
        $file = dirname(__FILE__).'/src/'.str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';
        if (file_exists($file)) {
            require $file;
            return true;
        }
        return false;
    }
    
    spl_autoload_register('__autoload');