审查视图

app/index/controller/AgreementController.php 941 字节
王晓刚 authored
1 2 3 4 5 6 7 8 9 10 11 12
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/8
 * Time: 10:15
 */

namespace app\index\controller;


use app\index\model\AgreementModel;
王晓刚 authored
13
use app\index\model\PageHtmlModel;
王晓刚 authored
14 15 16 17 18 19
use cmf\controller\WeChatBaseController;

class AgreementController extends WeChatBaseController
{
    public function index(){
        //协议
王晓刚 authored
20 21
        $pageHtmlModel = new PageHtmlModel();
        $data = $pageHtmlModel->findData(array('id'=>7));
王晓刚 authored
22 23 24 25 26 27 28 29
        $this->assign(
            array(
                'title'=>"协议",
                'data'=>$data,
            )
        );
        return $this->fetch();
    }
王晓刚 authored
30 31
    public function index2(){
        //协议
王晓刚 authored
32 33
        $pageHtmlModel = new PageHtmlModel();
        $data = $pageHtmlModel->findData(array('id'=>8));
王晓刚 authored
34 35 36 37 38 39 40 41
        $this->assign(
            array(
                'title'=>"协议",
                'data'=>$data,
            )
        );
        return $this->fetch();
    }
王晓刚 authored
42
}