PHP Classes

File: framework.php

Recommend this page to a friend!
  Classes of Unay Santisteban   Simple Framework   framework.php   Download  
File: framework.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Simple Framework
Framework to implement MVC based Web applications
Author: By
Last change: Update of framework.php
Date: 3 months ago
Size: 441 bytes
 

Contents

Class file image Download
<?php defined('DACCESS') or die ('Acceso restringido!');

/* Establish error levels */
error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE);

/* Import the definition file paths. */
if(!@include 'includes/defines.php'){
    die (
"Error loading defines.php");
}

/* Load the main system libraries. */
spl_autoload_register(function ($class) {
    if(!@require
SYSTEM_PATH. $class . '.php'){
        echo
"Error loading ".$class." class";
    }
});