在 views/news/_copyright.php 中插入如下代码:php
<div> This is text about copyright data for news items </div>
而后在同级目录中的itemsList.php中输入this
<?php echo $this->context->renderPartial('_copyright'); ?>
这样,就能在itemsList.php中引入_copyright.php的内容了。spa