Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 9508ebf0a5
Fetching contributors…

Cannot retrieve contributors at this time

executable file 44 lines (39 sloc) 1.463 kB
<?php
/**
* Created by rschiano.
* Project: Beable Framework
* Date: 18/08/12
*/
// Kernel path
define('PATH', dirname(__FILE__));
define('KERNEL_PATH', PATH.'/kernel');
define('APP_PATH', PATH.'/app');
define('WWW_PATH', PATH.'/www');
define('LIBS_PATH', PATH.'/libs');
define('TEMP_PATH', PATH.'/temp');
define('VIEW_COMPILE_PATH', TEMP_PATH.'/compile');
define('CACHE_PATH', TEMP_PATH.'/cache');
define('TOOL_PATH', PATH.'/tools');
define('SCRIPT_PATH', TOOL_PATH.'/scripts');
// Application path
define('UPDATE_PATH', APP_PATH.'/updates/');
define('UPDATE_DONE_PATH', UPDATE_PATH.'/done/');
define('CONTROLLER_PATH', APP_PATH.'/controllers');
define('VIEW_PATH', APP_PATH.'/views');
define('STATIC_PATH', APP_PATH.'/static');
define('STATIC_IMAGES_PATH', STATIC_PATH.'/images');
define('STATIC_JS_PATH', STATIC_PATH.'/js');
define('STATIC_CSS_PATH', STATIC_PATH.'/css');
define('MODEL_PATH', APP_PATH.'/models');
define('APP_SCRIPT_PATH', APP_PATH.'/scripts');
// Autoload
function load_class($name) {
if (strpos($name, 'Beable\\Kernel\\') !== false) {
$name = str_replace(array('Beable\\Kernel\\', '\\'), array('', '/'), $name);
require(KERNEL_PATH.'/'.strtolower($name).'.php');
} else {
$name = str_replace(array('Beable\\', '\\'), array('', '/'), $name);
require(MODEL_PATH.'/'.strtolower($name).'.php');
}
}
spl_autoload_register('load_class');
Jump to Line
Something went wrong with that request. Please try again.