Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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:
Date: 2 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";


?>