-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinc.configuration.php
38 lines (32 loc) · 1.37 KB
/
inc.configuration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
// Define the constants we need to get going.
define('NL', "\r\n");
define('DS', DIRECTORY_SEPARATOR);
define('PATH_ROOT', dirname(__FILE__));
define('CONTROLLER_DIR', PATH_ROOT . DS . 'controllers' . DS);
define('CONTROLLER_EXT', '.php');
define('VIEW_DIR', PATH_ROOT . DS . 'views' . DS);
define('VIEW_EXT', '.html');
// Require all of our necessary libraries.
require_once(PATH_ROOT . DS . 'classes' . DS . 'core' . DS . 'core.php');
require_once(PATH_ROOT . DS . 'classes' . DS . 'core' . DS . 'controller.php');
require_once(PATH_ROOT . DS . 'classes' . DS . 'core' . DS . 'user.php');
require_once(PATH_ROOT . DS . 'classes' . DS . 'core' . DS . 'database.php');
// Start our session
if(!isset($_SESSION))
{
session_start();
}
// Set up the Application specific settings.
$Configuration['Application']['Title'] = 'My Awesome Application!';
$Configuration['Application']['Locale'] = 'en-US';
$Configuration['Application']['Controller.Default'] = 'index';
$Configuration['Application']['Date.Format'] = 'm/d/Y';
$Configuration['Application']['DateTime.Format'] = 'm/d/Y h:i a';
$Configuration['Database']['Driver'] = 'mysql';
$Configuration['Database']['Host'] = 'localhost';
$Configuration['Database']['Database'] = 'database';
$Configuration['Database']['Username'] = 'root';
$Configuration['Database']['Password'] = '';
// Instantiate needed classes
$CORE = new Core($Configuration);