<?php $i++; ?> <?php } ?> </div> </div> <!-- /评论最多 --> <!-- 查看最多 --> <div class="sidebar-box white animate-onscroll"> <h3>查看最多</h3> <div class="week-hot" style="display: block;"> <?php $items = \hass\post\models\Post::findOrderByViews(); ?> <?php $i = 1; ?> <?php foreach ($items as $item) { ?> <a href="<?php echo \yii\helpers\Url::to(\hass\base\helpers\Util::getEntityUrl($item)); ?> " target="_blank" title=""> <span><?php echo $i; ?>