Skip to content

Commit 270d080

Browse files
Faryshtafeulf
authored andcommitted
bootstrap whitespace
1 parent e0daf91 commit 270d080

1 file changed

Lines changed: 36 additions & 51 deletions

File tree

app/bootstrap.php

Lines changed: 36 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,36 @@
1-
<?php
2-
3-
require_once LIBRARY_DIR . "Loader.php";
4-
5-
$loader = Loader::get_instance();
6-
$loader->init_settings(); // load the settings
7-
$loader->init_db();
8-
$loader->init_session();
9-
$loader->init_language(); // set the language
10-
$loader->auth_user();
11-
//$loader->auth_user();
12-
$loader->init_theme(); // set theme
13-
$loader->init_js();
14-
15-
16-
17-
18-
#--------------------------------
19-
# Auto Load the Controller
20-
# init_route set the controller/action/params
21-
# to load the controller
22-
#--------------------------------
23-
$loader->auto_load_controller();
24-
25-
26-
27-
28-
#--------------------------------
29-
# Load model
30-
# load the model and assign the result
31-
# @params model, action, params, assign_to
32-
#--------------------------------
33-
$loader->load_menu();
34-
35-
36-
37-
38-
#--------------------------------
39-
# Assign Layout variables
40-
#--------------------------------
41-
$loader->assign( 'title', 'RainFramework' );
42-
43-
44-
45-
#--------------------------------
46-
# Print the layout
47-
#--------------------------------
48-
$loader->draw();
49-
50-
51-
?>
1+
<?php
2+
require_once LIBRARY_DIR . "Loader.php";
3+
4+
$loader = Loader::get_instance();
5+
$loader->init_settings();//load the settings
6+
$loader->init_db();
7+
$loader->init_session();
8+
$loader->init_language();//set the language
9+
$loader->auth_user();
10+
//$loader->auth_user();
11+
$loader->init_theme();//set theme
12+
$loader->init_js();
13+
14+
#--------------------------------
15+
# Auto Load the Controller
16+
# init_route set the controller/action/params
17+
# to load the controller
18+
#--------------------------------
19+
$loader->auto_load_controller();
20+
21+
#--------------------------------
22+
# Load model
23+
# load the model and assign the result
24+
# @params model, action, params, assign_to
25+
#--------------------------------
26+
$loader->load_menu();
27+
28+
#--------------------------------
29+
# Assign Layout variables
30+
#--------------------------------
31+
$loader->assign( 'title', 'RainFramework' );
32+
33+
#--------------------------------
34+
# Print the layout
35+
#--------------------------------
36+
$loader->draw();

0 commit comments

Comments
 (0)