File: sandbox/bootstrap.php

Recommend this page to a friend!
  Classes of Juraj Puchký  >  Clear Framework  >  sandbox/bootstrap.php  >  Download  
File: sandbox/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Clear Framework
General purpose Web application framework
Author: By
Last change:
Date: 3 years ago
Size: 472 bytes
 

Contents

Class file image Download
<?php
ini_set
( 'display_errors', '1' );
//session_start ();
mb_internal_encoding ( "UTF-8" );

include_once (
"config.php");
include_once (
"include/db.php");
include_once (
"include/Mailer.php");



// Autoloader
function autoload($class) {
    if (!
class_exists ( $class )) {
        if (
mb_strpos ( $class, "Controller" ) === false)
            require (
__DIR__ . "/models/$class.php");
        else
            require (
__DIR__ . "/controllers/$class.php");
    }
}
spl_autoload_register ( "autoload" );



For more information send a message to info at phpclasses dot org.