PHP Classes

File: examples/annonce/bootstrap.php

Recommend this page to a friend!
  Classes of Juraj Puchký   Clear Framework   examples/annonce/bootstrap.php   Download  
File: examples/annonce/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: 7 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" );