<tbody> <?php if ($this->project_products) { ?> <?php foreach($this->project_products AS $key => $val) { ?> <tr data-id="<?php echo $val['id']; ?>"> <td><?php echo $val['title']; ?></td> <td><?php echo $val['amount']; ?></td> <td><?php if ($val['stock'] == -99) { ?>不限限额<?php } else { ?><?php echo $val['stock']; ?><?php } ?></td> <td><?php echo nl2br($val['description']); ?></td> <td> <a class="delete" data-id="<?php echo $val['id']; ?>" href="javascript:;">删除</a> </td> </tr> <?php } ?> <?php } ?> </tbody>我现在想在别的页面输出amount和title值,试着用下面的代码调用不起作用,应该怎么做?求助! <?php echo $this->project_products['amount']; ?> <?php echo $this->project_products['title']; ?> @Alu 你给的是调用这个title 我指的是这个title,两个都在publish页面
AI智能回复搜索中,请稍后...