예제 #1
0
파일: oats.php 프로젝트: Jonesy/Quick-Oats
 public static function boil($config)
 {
     # Assign the global config array
     self::$config = $config;
     # Get the URI
     self::router();
     #Render the view
     self::layout();
 }
예제 #2
0
파일: index.php 프로젝트: Jonesy/Quick-Oats
<?php

# Put on the apron
ini_set('display_errors', TRUE);
error_reporting(E_ALL & ~E_STRICT);
# Measure out the ingredients
define('Version', '0.1');
define("APP_PATH", dirname(dirname(__FILE__)) . "/app");
# Fill pot with 1 cup of water
include APP_PATH . '/config.php';
# Add Quick Oats
require_once APP_PATH . '/Oats.php';
# Bring to boil
Oats::boil($config);
# End of index.php