<?php
/*
Project Name: Zalawadivisha
File Name: index.php
Description: The file includes all the necessary files required to run the application.

*/

session_start();

// Include main configiguration file.
require_once './configs/webconfig.php';
require_once './lib/simplemvcwf/route.php';
require_once './lib/simplemvcwf/router.php';
require_once './lib/simplemvcwf/logger.php';
require_once './utility/common_model.php';

//  We need to require each controller for use later down the line.
//  There's certainly a better way to do this so that we avoid the
//  headache of always remembering to require each controller we create.

//require_once './controller/home_controller.php';
require_once './controller/admin_controller.php';
require_once './controller/sections_controller.php';
require_once './controller/subsections_controller.php';
require_once './controller/pages_controller.php';
require_once './controller/singlepages_controller.php';
require_once './controller/homebanners_controller.php';
require_once './controller/events_controller.php';
require_once './controller/updates_controller.php';
require_once './controller/downloads_controller.php';
require_once './controller/members_controller.php';
require_once './controller/galleries_controller.php';
require_once './controller/expquotes_controller.php';
require_once './controller/banners_controller.php';
require_once './controller/cities_controller.php';
require_once './controller/gams_controller.php';
require_once './controller/countries_controller.php';
require_once './controller/complexes_controller.php';
require_once './controller/plants_controller.php';
require_once './controller/departments_controller.php';
require_once './controller/frontpages_controller.php';


$MyPdodb = new MyPDO();	

require_once './lib/simplemvcwf/messages.php';

// 	 Note: multiple routes can be matched to the same url for any url
//   that starts with the route's url property. It is therefore important
//   that routes be ordered from most specific to least specific.
require_once './routers.php';

// 	 Now that the routes have been registered in specifc to least specific
// 	 order, we can call the matching controller's action
$router->callControllerAction();
?>