24 lines
448 B
PHP
24 lines
448 B
PHP
<?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');
|
|
}
|
|
}
|