feat: 附件(软件/手册下载)
This commit is contained in:
23
app/index/controller/Attachment.php
Normal file
23
app/index/controller/Attachment.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
use app\index\model\AttachmentCategoryModel;
|
||||
use think\facade\View;
|
||||
|
||||
/**
|
||||
* 附件控制器
|
||||
*/
|
||||
class Attachment extends Common
|
||||
{
|
||||
// 分页列表
|
||||
public function index()
|
||||
{
|
||||
// 获取分类
|
||||
$category = AttachmentCategoryModel::language($this->lang_id)->select();
|
||||
View::assign('category', $category);
|
||||
|
||||
return View::fetch('index');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user