Index.php 557 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\index\controller;
  3. use app\common\controller\Frontend;
  4. use think\Db;
  5. class Index extends Frontend
  6. {
  7. protected $noNeedLogin = '*';
  8. protected $noNeedRight = '*';
  9. protected $layout = '';
  10. public function index()
  11. {
  12. return $this->view->fetch();
  13. }
  14. //基础文章网页
  15. public function basedata(){
  16. $type = input('type', 4, 'intval');
  17. $content = Db::name('platform_info')->where('type',$type)->find();
  18. $this->assign('content',$content);
  19. return $this->fetch();
  20. }
  21. }