• 首页
  • 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

    相关文章推荐

    • Java里日期和时间的使用【20210327】 阅读:89
    • Docker搭建Elasticsearch6.8.15集群环境【20220905】 阅读:79
    • SpringBoot的Restful的请求路径参数@PathVariable注解的使用技巧【20211110】 阅读:268
    • 在Windows上通过pip安装Python软件包【20200924】 阅读:75
    • 在Elasticsearch里同时使用 must 和 should 关键字 阅读:111
    • Docker Hub无法访问怎么办? 阅读:1227
    • Rancher v2.5.9使用Dockerfile部署php-fpm和nginx服务的方法【20211016】 阅读:160
    • SpringBoot实现Restful风格接口的GET、POST、PUT、DELETE请求方式接收参数的方法【20211109】 阅读:542
    • 安装Windows 11内部预览版本(Windows 11 insider preview)的方法【20210708】 阅读:101
    • SpringBoot实现Restful风格接口的GET、POST、PUT、DELETE请求方式接收参数的方法【20211109】 阅读:542
    京公安备案11010602103556号 京ICP备18054497号 ©2021 同福网
    X