审查视图

application/index/controller/Index.php 473 字节
Karson authored
1 2 3 4 5 6 7 8 9
<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{
10 11
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
Karson authored
12 13 14 15 16 17 18 19 20 21
    protected $layout = '';

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

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

}