tp6使用的初期配置

磊落不羁 by:磊落不羁 分类:thinkphp6 时间:3年前 阅读:72 评论:0

一、模板的替换输出和使用 

//模板的替换输出
'tpl_replace_string'=>[
    '__JS__'=>'static/js',
    '__CSS__'=> 'static/css'
]

//加载包含输出的使用  应用于模板之中

方法一 {load href="__CSS__/style.css"}
方法二{css href='__css__/style.css'}  //js文件则用js开头


非特殊说明,本文版权归原作者所有,转载请注明出处

本文地址:http://php.liulei.com.cn/?type=acticle&id=9

评论列表

发表评论

  • 昵称(必填)
  • 邮箱
  • 网址

TOP