### [PHPCMS布局文件在哪里?](https://www.prosaas.cn/article/4007) **Published:** 2020-06-19T02:26:06 **Author:** 5201314 **Excerpt:** PHPCMS布局文件在哪里?PHPCMS布局文件在网站根目录下的“phpcms/templates/defau… ![](//zhiqipro.oss-cn-beijing.aliyuncs.com/2023/12/20231212122504194.jpg) **PHPCMS布局文件在哪里?** PHPCMS布局文件在网站根目录下的“phpcms/templates/default/”这个目录中,其主要的内容模板在该目录下的“content”中,PHPCMS自定义的布局文件的目录,只需将该目录中“default”改为自定义名称即可。 **PHPCMS 程序目录结构结构** |-----api  接口文件目录  |-----caches 缓存文件目录      |-----configs 系统配置文件目录          |-----database.php  数据库配置文件          |-----route.php     路由配置文件          |-----system.php    系统配置文件          |-----cache.php     缓存配置文件      |-----configs\_\*         系统缓存文件目录          |-----configs\_commons/caches\_data   主要用来存放后台设置的配置信息              |-----category\_content.cache.php栏目与站点映射所对应的配置文件              |-----category\_content\_1.cache.php站点1下所有栏目的详细配置信息              |-----category\_item\_1.cache.php 文章模型下各栏目所对应的数据量              |-----category\_item\_2.cache.php 下载模型下各栏目所对应的数据量              |-----category\_item\_3.cache.php 图片模型下各栏目所对应的数据量              |-----keylink.cache.php     关联链接配置缓存文件              |-----model.cache.php       三大模型配置缓存文件              |-----mood\_program.cache.php    表情配置缓存文件              |-----position.cache.php    推荐位配置缓存文件              |-----poster\_template\_1.cache.php广告位模板配置缓存文件              |-----sitelist.cache.php    站点列表配置文件,主要缓存所有站点的基本配置信息              |-----type\_content.cache.php    多个站点下的类别配置信息              |-----type\_content\_1.cache.php  当前站点下类别配置信息缓存文件              |-----urlrules.cache.php    url规则配置信息缓存文件              |-----urlrules\_detail.cache.php url规则详细配置信息缓存文件              |-----special.cache.php     专题配置信息缓存文件              |-----role.cache.php        角色配置缓存文件              |-----link.cache.php        友情链接缓存文件          |-----configs\_model/caches\_data              |-----content\_form.class.php    生成表单的类库缓存文件              |-----content\_input.class.php   入库时,对表单数据进行验证的类库缓存文件              |-----content\_output.class.php  对从数据表中查询出来的数据进行处理的函数              |-----content\_update.class.php  对要更新的数据进行有效性验证的函数              |-----model\_field\_1.cache.php   文章模型所有模型字段的缓存信息              |-----model\_field\_2.cache.php   下载模型所有模型字段的缓存信息              |-----model\_field\_3.cache.php   图片模型所有模型字段的缓存信息  |-----phpcms                        phpcms框架主目录         |-----languages                  框架语言包目录         |-----libs                   框架主类库、主函数库目录          |-----classes              |-----form.class.php    表单生成类库文件              |-----application.class.php 应用程序类库文件              |-----image.class.php       图片处理类库文件              |-----attachment.class.php  附件处理类库文件              |-----param.class.php       URL参数处理类库文件          |-----functions              |-----global.func.php       公共函数库文件              |-----extension.class.php   扩展函数库文件         |-----model                  框架数据库模型目录          |-----content\_model.class.php       内容模型文件          |-----admin\_model.class.php     管理员模型文件          |-----attachment\_model.class.php    附件模型文件         |-----modules                    框架模块目录          |-----admin             admin模块               |-----index.php         index.php控制器文件          |-----content               content模块              |-----classes           content模块通用类库              |-----fields            content模块模型字段              |-----functions         content模块通用函数库              |-----templates         content模块后台模板文件              |-----index.php         index.php控制器文件         |-----templates                  框架系统前台模板目录          |-----default               默认的模板风格              |-----content           content模块模板目录                  |-----category.html 频道页模板文件                  |-----list.html     列表页模板文件                  |-----show.html     内容页模板文件              |-----config.php        模板配置文件  |-----phpsso\_server                 phpsso主目录  |-----statics                       网站素材文件目录      |-----css                                   css文件          |-----images                    images文件          |-----js                    js文件  |-----uploadfile                    上传附件  |-----admin.php                     后台入口文件  |-----index.php                     前台入口文件   > 推荐教程:《PHP教程》《PHPCMS》 以上就是PHPCMS布局文件在哪里?的详细内容,更多请关注知企PROSAAS其它相关文章! **Tags:** class, css, database, default, html, JS, php, PHPCMS, position, 接口 **Categories:** PHPCMS ---