Login   Register  
PHP Classes
elePHPant
Icontem

File: framework.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: added cache y benchmark
Date: 4 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";
    }
});