-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbootstrap.php
More file actions
50 lines (31 loc) · 1.06 KB
/
bootstrap.php
File metadata and controls
50 lines (31 loc) · 1.06 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
<?php
require_once LIBRARY_DIR . "Loader.php";
$loader = Loader::get_instance();
$loader->init_settings(); // load the settings
$loader->init_db();
$loader->init_session();
$loader->init_language(); // set the language
$loader->auth_user();
$loader->init_theme(); // set theme
$loader->init_js();
#--------------------------------
# Auto Load the Controller
# init_route set the controller/action/params
# to load the controller
#--------------------------------
$loader->auto_load_controller();
#--------------------------------
# Load model
# load the model and assign the result
# @params model, action, params, assign_to
#--------------------------------
$loader->load_menu();
#--------------------------------
# Assign Layout variables
#--------------------------------
$loader->assign( 'title', 'RainFramework' );
#--------------------------------
# Print the layout
#--------------------------------
$loader->draw();
?>