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
| <?php
|
| class zphnetv_controller extends common{
|
| function __construct($tpl,$db,$def='',$model='index',$m='') {
| $this->common($tpl,$db,$def,$model,$m);
|
| if ($_GET['m'] == 'xjh'){
| return true;
| }else{
| return false;
| }
| }
| public function render_json($error='', $msg='', $data = array()) {
| $result = array(
| 'error' => $error,
| 'msg' => $msg,
| 'data' => $data
| );
| header('content-type:application/json; charset=utf-8');
| echo json_encode($result);
| exit;
| }
| }
| ?>
|
|