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