我在我的邮件模板中使用以下代码:
{{block type='core/template' area='frontend' template='email/files.phtml' links=$links}}
这里是phtml代码:
<?php foreach ($this->getLinks() as $_link): ?>
<p><?php echo $_link; ?></p>
<?php endforeach; ?>
但是它不起作用。即使我在phtml中写了一些循环之外的内容,也没有显示出来。