12345678910111213141516171819202122232425 |
- <?php
- namespace app\index\controller;
- use app\common\controller\Frontend;
- class Index extends Frontend
- {
- protected $noNeedLogin = '*';
- protected $noNeedRight = '*';
- protected $layout = '';
- public function index()
- {
- return $this->view->fetch();
- }
- public function news()
- {
- $newslist = [];
- return jsonp(['newslist' => $newslist, 'new' => count($newslist), 'url' => 'https://www.fastadmin.net?ref=news']);
- }
- }
|