File: www/_Main.php

Recommend this page to a friend!
  Classes of Fernando Val  >  Springy  >  www/_Main.php  >  Download  
File: www/_Main.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Springy
Microframework for Web application development
Author: By
Last change: Removing unecessary use of $GLOBALS
Date: 10 months ago
Size: 896 bytes


Class file image Download
 * Springy web launcher script.
 * @copyright 2007 Fernando Val
 * @author Fernando Val <>
 * @version
$springyStartTime = microtime(true); // Memoriza a hora do início do processamento

// Kill system with internal error 500 if initial setup file does not exists
if (!file_exists('sysconf.php') || !file_exists('helpers.php')) {
header('Content-type: text/html; charset=UTF-8', true, 500);
'Internal System Error on Startup');

// Load framework configuration
require 'sysconf.php';
// Load helper script.
require 'helpers.php';

// Load Composer autoload
if (file_exists(sysconf('VENDOR_PATH').DS.'autoload.php')) {

// System start
Springy\Kernel::initiate($GLOBALS['SYSTEM'], $springyStartTime);

if (
count(ob_list_handlers())) {

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