18 lines
405 B
PHP
18 lines
405 B
PHP
<?php
|
|
/**
|
|
* @copyright Copyright (c) 2021 勾股工作室
|
|
* @license https://opensource.org/licenses/GPL-2.0
|
|
* @link https://www.gougucms.com
|
|
*/
|
|
/**
|
|
======================
|
|
*模块数据获取公共文件
|
|
======================
|
|
*/
|
|
use think\facade\Db;
|
|
//读取知识分类列表
|
|
function article_cate()
|
|
{
|
|
$cate = Db::name('ArticleCate')->order('id desc')->select()->toArray();
|
|
return $cate;
|
|
} |