PHP Classes

File: Bootstrap.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Useful pH Classes   Bootstrap.php   Download  
File: Bootstrap.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Useful pH Classes
Classes and functions for several purposes
Author: By
Last change:
Date: 2 days ago
Size: 843 bytes
 

Contents

Class file image Download
<?php
/**
 * @author Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright (c) 2012, Pierre-Henry Soria. All Rights Reserved.
 * @link http://github.com/pH-7
 * @license CC-BY License - http://creativecommons.org/licenses/by/3.0/
 */

namespace PH7\Framework;
define('PH7', 1);

try
{
    require
__DIR__ . '/Config/constants.php';
   
//require PH7_PATH_FRAMEWORK . '/Include/init.inc.php';

    /*** Instantiation language ***/
   
mb_internal_encoding(PH7_ENCODING);
   
mb_http_output(PH7_ENCODING);
   
mb_http_input(PH7_ENCODING);
   
mb_language('uni');
   
mb_regex_encoding(PH7_ENCODING);
   
ob_start('mb_output_handler');

    require
__DIR__ . '/Loader/Autoloader.php';
   
Loader\Autoloader::init();

   
// Your code here and declaring your classes.
}
catch (\
Exception $oE)
{
    exit(
$oE->getMessage());
}