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

    相关文章推荐

    • Python做个搜索引擎(2)MySQL数据库设计【20201005】 阅读:108
    • Rancher v2.5.9使用Docker部署MySQL服务的方法【20220331】 阅读:130
    • Elasticsearch创建索引设置settings和mappings参数【20210607】 阅读:1163
    • Swoole学习笔记 阅读:76
    • Java通过JDBC操作MySQL数据库V1.5【20211127】 阅读:137
    • SpringBoot创建第一个项目IDEA版【20211118】 阅读:47
    • IDEA通过Remote JVM Debug远程调试Springboot项目的方法【20221203】 阅读:177
    • 做个web框架(16)——日志对象TFLog(二)日志模块的实现【20201112】 阅读:58
    • Rancher v2.5.9使用Dockerfile部署php-fpm和nginx服务的方法【20211016】 阅读:160
    • Docker私有仓库Registry服务器配置SSL证书以支持HTTPS协议【20220318】 阅读:505
    京公安备案11010602103556号 京ICP备18054497号 ©2021 同福网
    X