审查视图

application/index/controller/Index.php 581 字节
Karson authored
1 2 3 4 5
<?php

namespace app\index\controller;

use app\common\controller\Frontend;
6
use app\common\library\Token;
Karson authored
7 8 9 10

class Index extends Frontend
{
11 12
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
Karson authored
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
    protected $layout = '';

    public function _initialize()
    {
        parent::_initialize();
    }

    public function index()
    {
        return $this->view->fetch();
    }

    public function news()
    {
        $newslist = [];
Karson authored
28
        return jsonp(['newslist' => $newslist, 'new' => count($newslist), 'url' => 'https://www.fastadmin.net?ref=news']);
Karson authored
29 30 31
    }

}