【发布时间】:2016-11-23 03:27:24
【问题描述】:
我正在尝试在以下 tpl 文件的页脚中编辑指向其中一项的链接:
<?php if ($informations) : ?>
<div class="col-lg-4 col-md-4 col-xs-6">
<div class="module clearfix">
<h3 class="modtitle"><?php echo $text_information; ?></h3>
<div class="modcontent" >
<ul class="menu">
<?php foreach ($informations as $information) { ?>
<li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
<?php } ?>
</ul>
</div>
</div>
</div>
似乎他们正在遍历一个数组,我猜它在哪里说 foreach ($informations as $information) { ?,我应该在哪里找到 $informations 变量或者我如何访问这些变量的内容?
【问题讨论】:
标签: php variables opencart footer