12345678910111213141516171819202122232425262728 |
- <?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 info() {
- $params = $this->request->request("params"); //内容
- $this->view->assign('info',config("site.".$params));
- return $this->view->fetch();
- }
- }
|