Index.php 473 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\index\controller;
  3. use app\common\controller\Frontend;
  4. class Index extends Frontend
  5. {
  6. protected $noNeedLogin = '*';
  7. protected $noNeedRight = '*';
  8. protected $layout = '';
  9. public function index()
  10. {
  11. return $this->view->fetch();
  12. }
  13. public function news()
  14. {
  15. $newslist = [];
  16. return jsonp(['newslist' => $newslist, 'new' => count($newslist), 'url' => 'https://www.fastadmin.net?ref=news']);
  17. }
  18. }