12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\index\controller;
- use app\common\controller\Frontend;
- use think\Db;
- class Index extends Frontend
- {
- protected $noNeedLogin = '*';
- protected $noNeedRight = '*';
- protected $layout = '';
- public function index()
- {
- return $this->view->fetch();
- }
- //基础文章网页
- public function basedata(){
- $type = input('type', 4, 'intval');
- $content = Db::name('platform_info')->where('type',$type)->find();
- $this->assign('content',$content);
- return $this->fetch();
- }
- }
|