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