PHP Classes

File: fwphp/glomodul/z_examples/MVC_FW/ngrt_MVC_todo/Webroot/index.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/MVC_FW/ngrt_MVC_todo/Webroot/index.php   Download  
File: fwphp/glomodul/z_examples/MVC_FW/ngrt_MVC_todo/Webroot/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/MVC_FW/ngrt_MVC_todo/Webroot/index.php
Date: 1 year ago
Size: 545 bytes
 

Contents

Class file image Download
<?php
//define('WEBROOT', str_replace("Webroot/index.php", "", $_SERVER["SCRIPT_NAME"]));
define('MODULEDIR', dirname(__DIR__) .'/');
//define('ROOT', str_replace("Webroot/index.php", "", $_SERVER["SCRIPT_FILENAME"]));

//require(ROOT . 'Config/core.php');
require(MODULEDIR . "Config/db.php");
require(
MODULEDIR . "Core/Model.php");
require(
MODULEDIR . "Core/Controller.php");

require(
MODULEDIR . 'router.php');
require(
MODULEDIR . 'request.php');
require(
MODULEDIR . 'dispatcher.php');

$dispatch = new Dispatcher();
$dispatch->dispatch();
?>