Go to file
ichynul d35689e2bb fix 2025-07-28 15:47:24 +08:00
admin/controller fix 2025-07-28 15:47:24 +08:00
common fix 2025-07-28 14:30:26 +08:00
data 细节优化 2025-04-21 00:08:17 +08:00
tpl fix 2025-07-28 14:30:26 +08:00
.gitignore 添加gitignore 2025-04-29 10:54:18 +08:00
LICENSE.txt update 2023-05-04 23:03:40 +08:00
README.md fix 2025-07-28 14:30:26 +08:00
basepath.txt 调整为extend模式 2022-12-13 17:23:05 +08:00
composer.json add composer 2023-05-04 23:21:57 +08:00
config.php fix 2025-01-01 09:19:57 +08:00
functions.php 细节优化和问题修复 2025-07-18 09:38:41 +08:00
helper.php add composer 2023-05-04 23:21:57 +08:00

README.md

tpext.cms 内容管理系统

功能

  • 文章管理
  • 分类管理
  • 合集管理
  • 模板管理
  • 静态资源js/css 管理
  • 模板绑定
  • 静态页面生成
  • 动态路由生成

安装

2024-12-10 更新:不支持过往版本的直接升级,建议新项目使用。

如果是老项目,请删除原数据表(建议重命名以备份),然后再安装。

DROP TABLE IF EXISTS `__PREFIX__cms_category`;
DROP TABLE IF EXISTS `__PREFIX__cms_content`;
DROP TABLE IF EXISTS `__PREFIX__cms_position`;
DROP TABLE IF EXISTS `__PREFIX__cms_banner`;
DROP TABLE IF EXISTS `__PREFIX__cms_tag`;

一些细节

nginx 默认文档问题

如宝塔建站的默认顺序为:index.php index.html index.htm default.php default.htm default.html

那么当访问 http://yourdomain.com/ 时其实是访问index.php,当访问 http://yourdomain.com/index.html 才是访问index.html

如开启首页静态化,并想让用户始终访问到index.html,请设置 nginx 默认文档为第一个为index.html:

server
{
    listen 80;
    server_name yourdomain.com;
    index index.html index.php index.htm default.php default.htm default.html;
}

tp6 / tp8

如果不使用首页静态化(index.html不存在),多应用模式下,如存在app/index目录,将可能影响 http://yourdomain.com/可访问性。

http://yourdomain.com/请求或访问到默认应用,当于访问http://yourdomain.com/index

因为think-multi-app的逻辑是存在app/index目录时,http://yourdomain.com/index 的请求都不走路由cms系统生成的路由也失效。

解决方法: /config/app.php中修改默认应用为一个不存在的应用名,如none

`default_app` => 'none'

当然,如果你的生成路径不是 /,比如是 /cms/ 那么以上问题不存在。