PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Jonathan Alexey   JFWork   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: running aplication
Class: JFWork
Tiny framework based on the MVC design pattern
Author: By
Last change: Update of index.php
Date: 3 years ago
Size: 482 bytes
 

Contents

Class file image Download
<?php

// actual pasta é esta!
chdir(dirname(__FILE__));


$core = "core";

$controller = "controller";

$config = "config";

$views = "views";

if(!
is_dir($core)){
    die(
"Core folder missing!");
}

// Core path
define("CORE", $core."/");

// Controller path
define("CONTROLLER", $controller."/");

// Config path
define("CONFIG", $config."/");

// View path
define("VIEWS", $views."/" );


$request_url = "REQUEST_URI";

// keep rolling the ball...
require CORE."JF.Work.php";


?>