PHP Classes

File: inc/main.inc.php

Recommend this page to a friend!
  Classes of Frank Broersen   Form creater   inc/main.inc.php   Download  
File: inc/main.inc.php
Role: Auxiliary script
Content type: text/plain
Description: Main inc (for class including)
Class: Form creater
Generate forms for using with Smarty templates
Author: By
Last change:
Date: 16 years ago
Size: 410 bytes
 

Contents

Class file image Download
<?php
/**
 * Error reporting level during development, 0 after
 */
error_reporting(E_ALL | E_STRICT);

/**
 * Set the default timezone for Smarty
 */
date_default_timezone_set('Europe/Amsterdam');

function
__autoload($p_sClass) {
    switch(
$p_sClass) {
        case
'Smarty':
            require_once(
'../smarty/Smarty.class.php');
        break;
        default:
            require_once(
'../classes/'.$p_sClass.'.class.php');
        break;
    }
}
?>