php - 我想将一个数组从 php 文件发送到 smarty 中的 .tpl 文件
问题描述
当我尝试在 php 文件中使用 $smarty->assign('data',$data) 并尝试在我的 tpl 中写入 {$data} 它得到 Null 如何使 tpl 文件正确读取值
解决方案
推荐阅读
- kubernetes - 在 k8s 中查找 admin_ca、cluster_ca 和 admin_cert 的位置
- excel - 在一个条件下修复一个单元格值,否则让用户输入任何值
- python - Django 测试使用来自会话输入的电子邮件地址创建用户,assertRedirects 不起作用
- php - 通过 fopen 在 PHP 中获取 AT 命令的输出值
- hp-uft - UFT:如何识别动态 webtable 中的 webEdit
- python - 如何在具有 MLPClassifier Sklearn 的神经网络中使用自定义损失函数?
- haskell - Haskell:如何读入一系列浮点数,然后用 IO 将它们写入 Haskell 中的列表。
- python - Python需要从文件名中查找输入表名
- javascript - window.location.assign() 导航到用户输入的 url?
- sql - SQL Server:在另一个条件之前