PHP Classes

File: system/dependencies/kosinix/grafika/src/autoloader.php

Recommend this page to a friend!
  Classes of Dimitri Sitchet   dFramework   system/dependencies/kosinix/grafika/src/autoloader.php   Download  
File: system/dependencies/kosinix/grafika/src/autoloader.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: dFramework
Framework to build PHP applications
Author: By
Last change:
Date: 4 years ago
Size: 285 bytes
 

Contents

Class file image Download
<?php
spl_autoload_register
(function ($class) {
    if (
0 === strpos( $class, 'Grafika' ) ) { // Autoload our packages only

       
$base_dir = __DIR__ . '/';
       
$file = str_replace('\\', '/', $base_dir . $class . '.php'); // Change \ to /

       
require_once $file;
    }
});