Location: PHPKode > scripts > EZMVC > ezmvc/index.php
<?php

	#############################################################
	# EZMVC Framework											#
	#-----------------------------------------------------------#
	# Author: Sarfraz Ahmed Chandio								#
	#-----------------------------------------------------------#
	# Email: hide@address.com							#
	#-----------------------------------------------------------#
	# Company: The Brains										#
	#-----------------------------------------------------------#
	# Website: http://www.brainstech.com						#
	#-----------------------------------------------------------#
	# Dated: 25th of June 2009									#
	#-----------------------------------------------------------#
	#############################################################


	# include the config file
	require 'config.php';

	# include the core files
	require __SITE_PATH . '/core/' . 'controller.class.php';
	require __SITE_PATH . '/core/' . 'registry.class.php';
	require __SITE_PATH . '/core/' . 'router.class.php';
	require __SITE_PATH . '/core/' . 'template.class.php';
	require __SITE_PATH . '/core/' . 'model.class.php';
	require __SITE_PATH . '/core/' . 'quickdb.class.php';

	# create new registry object
	$registry = new registry;
	
	# create the database registry object
	$registry->db = new QuickDB($__host, $__user, $__password, $__database);

	# load the router
	$registry->router = new router($registry);
	
	# load the model
	$registry->model = new model($registry->db, $registry->router->getFile());
	
	# load up the template
	$registry->template = new template($registry);
	
	# load the controller
	$registry->router->dispatch();
	
	### end of the index file ###
?>
Return current item: EZMVC