PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Shawn McAllister   MVC Like Modular Framework   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: bootstrap
Class: MVC Like Modular Framework
Framework that implements the MVC design pattern
Author: By
Last change:
Date: 15 years ago
Size: 490 bytes
 

Contents

Class file image Download
<?php
ob_start
();
/* config */
ini_set('error_reporting', E_ERROR ^ E_NOTICE ^ E_WARNING);
/*/end config */

$class_path = dirname(__FILE__).'/Application/classes/';
$module_path = dirname(__FILE__).'/Modules/';
$view_path = dirname(__FILE__).'/Views/';

/* classes */
require_once($class_path.'router.class.php');
require_once(
$class_path.'view.class.php');

/* Initialize Router */
$router = new Router($_SERVER['REQUEST_URI']);

/* End Router */
$router->Execute();
?>