• 首页
  • tfphp
  • tfhtml
  • 小工具
  • 登录
  • 注册

在 Smarty 模板中使用 define 定义的常量

鬼谷子叔叔 - 2019-09-30 11:18

PHP代码:

<?php

define('ABC', "this is abc");

Html代码:

<% $smarty.const.ABC %>


  • PHP
  • Smarty
  • 鬼谷子叔叔
    跟福哥学编程吧~~
    1626
    212
    13

    相关文章推荐

    • 使用 JdbcTemplate 的 queryForMap 时候 Tinyint(1) 类型被转成 Boolean 阅读:129
    • TFPHP框架的TFDO对象的使用【20210615】 阅读:35
    • 安装Windows 11内部预览版本(Windows 11 insider preview)的方法【20210708】 阅读:101
    • TortoiseGet使用Cherry Pick合并一个commit到分支上面【20210822】 阅读:34
    • Python的图像处理库pillow使用教程【20210712】 阅读:175
    • 使用php:7.4-apache-buster镜像部署PHP7+Apache环境 阅读:259
    • 如何在CentOS7里面安装nslookup? 阅读:304
    • 关于Cookie的属性SameSite你知道多少 阅读:55
    • 做个java框架(7)——Spring框架的注解的学习笔记【20210107】 阅读:55
    • Canal: end of stream when reading header 阅读:299
    京公安备案11010602103556号 京ICP备18054497号 ©2021 同福网
    X