Index.php
446 字节
<?php
namespace app\index\controller;
use app\common\controller\Frontend;
use app\index\model\Hot;
class Index extends Frontend
{
protected $noNeedLogin = ['*'];
protected $noNeedRight = ['*'];
public function index(){
//热门搜索
$hotModel = new Hot();
$hot = $hotModel->selectData([]);
$this->assign('hot',$hot);
$this->assign('title','首页');
return $this->fetch();
}
}