Index.php 530 B

12345678910111213141516171819202122232425262728
  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. /**
  14. * 获取网站配置信息
  15. */
  16. public function info() {
  17. $params = $this->request->request("params"); //内容
  18. $this->view->assign('info',config("site.".$params));
  19. return $this->view->fetch();
  20. }
  21. }