更新时间:2024-02-27 14:26

模版制作

一、模版静态目录:/public/static/index/skin/default


二、模版文件目录:/app/view/default

admin后台管理界面模版

index前端展示页面模版,我们一版修改这个

/app/view/default/index

网站首页模版 :必须有index文件夹,新建:index.html(支持html和php)

文章模版:article文件夹中

index.html (模型首页模版

list.html(模型列表模版)

detail.html(模型详细文章页面模版)


三、新增模版 /custom/config 

1、setting_data.php  伪静态URL规则配置,在模块设置选择对应url规则

     template.php 系统设置→网站设置选择 网站默认风格 和 网站默认模板

2、也可以单独定义文章模型,首页模版,列表模版,文章详情模版,设置后在对应模块设置中选择

$config['templateFiles']=array(

    43=>array(

        "index"=>array("index/doc/index"=>"文档首页", ),

        "list"=>array("index/doc/list"=>"文档列表",),

        "detail"=>array("index/doc/info"=>"文档文章", ),

    ),

);

43对应模型id,必须设置正确,否则对应模型没有模版,对应模版放的位置默认到/app/view/default/index,

 




<PREVIOUS
NEXT>