审查视图

app/portal/controller/AdminStatisticsController.php 756 字节
董瑞恩 authored
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
<?php
/**
 * Created by PhpStorm.
 * User: ruidiudiu
 * Date: 2018/11/21
 * Time: 17:20
 */

namespace app\portal\controller;


use cmf\controller\AdminBaseController;
/**
 * Class AdminStatisticsController
 * @package app\portal\controller
 * @adminMenuRoot(
 *     'name'   =>'数据统计',
 *     'action' =>'index',
 *     'parent' =>'',
 *     'display'=> true,
 *     'order'  => 1,
 *     'icon'   =>'th',
 *     'remark' =>'数据统计'
 * )
 */
class AdminStatisticsController extends AdminBaseController{

    public function index(){
董瑞恩 authored
30
        $week=array();
董瑞恩 authored
31
        for ($i = 0; $i <= 30; $i++){
董瑞恩 authored
32
            $week[30-$i]=strtotime(date('Ymd',strtotime("-$i week")));
董瑞恩 authored
33
        }
董瑞恩 authored
34 35

董瑞恩 authored
36
        dump($week);
董瑞恩 authored
37
董瑞恩 authored
38 39 40 41 42 43 44
        return $this->fetch();
    }




}