-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
36 lines (27 loc) · 669 Bytes
/
init.php
File metadata and controls
36 lines (27 loc) · 669 Bytes
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
<?php
/*
Display errors turn on
*/
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
/*
Import configuration lib
*/
use Noodlehaus\Config;
/*
Import Helpers to the application
*/
use Ciaompe\Helpers\Database;
use Ciaompe\Helpers\Variation;
//Load Composer Packages
require 'vendor/autoload.php';
//Load System Configurtions from config.php file
$config = Config::load('config.php');
//Twig Cofiguration
$loader = new Twig_Loader_Filesystem('system/templates');
$twig = new Twig_Environment($loader);
//Make Database Connection
$db = new Database($config);
//Create new Variation Helper
$variation = new Variation();