Skip to content

Instantly share code, notes, and snippets.

@okaprinarjaya
Created July 10, 2012 13:44
Show Gist options
  • Save okaprinarjaya/3083330 to your computer and use it in GitHub Desktop.
Save okaprinarjaya/3083330 to your computer and use it in GitHub Desktop.
<?php
if (!defined('DS')) {
define('DS', DIRECTORY_SEPARATOR);
}
define('APP_PATH', 'C:'.DS.'xampp'.DS.'htdocs'.DS.'testdrive');
define('HOSTNAME', 'http://localhost/testdrive');
define('LIBS_PATH', APP_PATH.DS.'Libs');
define('ASSETS_PATH', HOSTNAME.'/Assets');
define('VENDORS_PATH', APP_PATH.DS.'Vendors');
define('UPLOAD_DIR', APP_PATH.DS.'Assets'.DS.'files');
require_once(APP_PATH.DS.'DBConfig.php');
require_once(LIBS_PATH.DS.'DBConnection.php');
require_once(LIBS_PATH.DS.'SessionHandler.php');
require_once(LIBS_PATH.DS.'Model.php');
require_once(LIBS_PATH.DS.'View.php');
require_once(LIBS_PATH.DS.'Controller.php');
date_default_timezone_set('Asia/Jakarta');
function pr($iterable) {
echo '<pre>';
print_r($iterable);
echo '</pre>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment