zoukankan      html  css  js  c++  java
  • tp5 模板参数配置(模板静态文件路径)

    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">

  • 相关阅读:
    1094. Car Pooling
    121. Best Time to Buy and Sell Stock
    58. Length of Last Word
    510. Inorder Successor in BST II
    198. House Robber
    57. Insert Interval
    15. 3Sum java solutions
    79. Word Search java solutions
    80. Remove Duplicates from Sorted Array II java solutions
    34. Search for a Range java solutions
  • 原文地址:https://www.cnblogs.com/jasonLiu2018/p/11517011.html
Copyright © 2011-2022 走看看