首页 > 其他 > 详细

tp5 模板参数配置(模板静态文件路径)

时间:2019-09-13 18:20:14      阅读:162      评论:0      收藏:0      [点我收藏+]

tp5 模板参数配置(模板静态文件路径)

// 模板页面使用 <link rel="stylesheet" type="text/css" href="{:config(‘__STATICADMIN__‘)}/h-ui.admin/css/style.css" />
‘__STATICCSS__‘ =>‘/static/Css‘,

template => [ // 模板引擎类型 支持 php think 支持扩展 type => Think, // 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 auto_rule => 1, // 模板路径 view_path => ‘‘, // 模板后缀 view_suffix => html, // 模板文件名分隔符 view_depr => DS, // 模板引擎普通标签开始标记 tpl_begin => {, // 模板引擎普通标签结束标记 tpl_end => }, // 标签库标签开始标记 taglib_begin => <, // 标签库标签结束标记 taglib_end => >, // 静态文件路径替换
     // 模板页面使用<link rel="stylesheet" type="text/css" href="__ADMIN__/page.css">
tpl_replace_string => [ __ADMIN__ => /static/Admin, __Home__ => /static/Home, __Wap__ => /static/Wap, __Api__ => /static/Api ]
       ]

 

 

 

 

 

// <link rel="stylesheet" type="text/css" href="__ADMIN__/page.css">

tp5 模板参数配置(模板静态文件路径)

原文:https://www.cnblogs.com/jasonLiu2018/p/11517011.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!