魏曦的yii课程,优酷,yii,1.5倍速,2018年12月?实际貌似是2015……
7-1,6分14秒左右
代码:
frontend/views/post/_listitem.php
<div class="nav">
<span class="glyphicon glyphicon-tag" aria-hidden="true"></span>
<?= implode(', ',$model->tagLinks); ?>
<br>
<?= \yii\helpers\Html::a("评论 ({$model->commentCount})",$model->url.'#comments') ?>
</div>
视频用的单引号,怎么都不对。
结果折腾好久,原来是要双引号。
基础知识。
还有就是tags的链接url在model\post里面……然而指向的是index?