在 views/news/_copyright.php 中插入以下代码:

<div>
    This is text about copyright data for news items
</div>

然后在同级目录中的itemsList.php中输入

<?php echo $this->context->renderPartial('_copyright'); ?>

这样,就能在itemsList.php中引入_copyright.php的内容了。

相关文章:

  • 2021-05-27
  • 2021-12-11
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案