PHP Classes

File: include/autoload.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Simple Auth OOP   include/autoload.php   Download  
File: include/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Simple Auth OOP
Authenticate users using MVC classes
Author: By
Last change:
Date: 3 days ago
Size: 239 bytes
 

Contents

Class file image Download
<?php
    session_start
();
   
spl_autoload_register(function ($class)
    {
       
$path = "class/";
       
$filename = $class;
       
$extension = ".php";
       
$fullpath = $path.$filename.$extension;

       
//Include in project
       
include $fullpath;
    });
?>