20 lines
278 B

<?php
/**
* @var $this \yii\web\View
* @var $view string
* @var $posts \core\entities\post\Post[]
* @var $url string
*/
?>
<?php foreach ($posts as $post): ?>
<?= $this->render($view . '_item', [
'post' => $post,
'url' => $url,
]) ?>
<?php endforeach; ?>