AgreementController.php
941 字节
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
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/1/8
* Time: 10:15
*/
namespace app\index\controller;
use app\index\model\AgreementModel;
use app\index\model\PageHtmlModel;
use cmf\controller\WeChatBaseController;
class AgreementController extends WeChatBaseController
{
public function index(){
//协议
$pageHtmlModel = new PageHtmlModel();
$data = $pageHtmlModel->findData(array('id'=>7));
$this->assign(
array(
'title'=>"协议",
'data'=>$data,
)
);
return $this->fetch();
}
public function index2(){
//协议
$pageHtmlModel = new PageHtmlModel();
$data = $pageHtmlModel->findData(array('id'=>8));
$this->assign(
array(
'title'=>"协议",
'data'=>$data,
)
);
return $this->fetch();
}
}