tp5 template parameter configuration (static template file path)

tp5 template parameter configuration (static template file path)

@ Template page using <link rel = "stylesheet" type = "text / css" href = "{: config ( '__ STATICADMIN __')} / h-ui.admin / css / style.css" />
'__STATICCSS__' => '/ static / Css', 

'
Template ' => [ // template engine types support php think support the expansion ' of the type ' => ' of Think ' , // default template rendering Rule 1 resolved to lowercase + underscore 2 all conversion lowercase ' auto_rule ' => . 1 , // template path ' view_path ' => '' , // template suffix ' view_suffix ' => ' HTML ' , // template file name delimiter ' View_depr ' => the DS, // template ordinary engine start flag tag ' tpl_begin ' => ' { ' , // template engine normal label end tag ' tpl_end ' => ' } ' , // tag label begin tag library ' taglib_begin ' => ' < ' , // tag library tag end tag ' taglib_end ' => ' > ' , // static file paths with
     // 模板页面使用<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">

Guess you like

Origin www.cnblogs.com/jasonLiu2018/p/11517011.html