-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
53 lines (51 loc) · 1.23 KB
/
test.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* The goal of this file is to allow developers a location
* where they can overwrite core procedural functions and
* replace them with their own. This file is loaded during
* the bootstrap process and is called during the frameworks
* execution.
*
* This can be looked at as a `master helper` file that is
* loaded early on, and may also contain additional functions
* that you'd like to use throughout your entire application
*
* @link: https://codeigniter4.github.io/CodeIgniter4/
*/
//print_r($_REQUEST); exit();
//print_r($level);
//print_r($year); exit();
//if post level = 1 then get data from db for that level and year and display
echo '[{
"indicatorid": "1.1.1",
"level": 1,
"year": 2019,
"disaggragations": [{
"disaggragationid": "1.1.1",
"data": [{
"value": 123
}]
},{
"disaggragationid": "1.1.1a",
"data": [{
"value": 123
}]
},{
"disaggragationid": "1.1.1b",
"data": [{
"value": 123
}]
},{
"disaggragationid": "1.1.1c",
"data": [{
"value": 123
}]
},{
"disaggragationid": "1.1.1d",
"data": [{
"value": 124
}]
}]
}]';
//if post level = 2 then get data from db for that level and year and display
//if post level = 3 then get data from db for that level and year and display