use yii\helpers\Url; use common\models\Member; ?> <?php foreach ($comments as $comment) { ?> <div class="commentbody" id="c<?php echo $comment->id; ?> "> <br/> <hr /> <div class="author"> <?php echo Html::img(Member::getAuthorImg($comment->user_id), ['width' => 50, 'height' => 50]); ?> <?php echo Html::decode(Member::getAuthorLink($comment->user_id)); ?> <em class="pull-right"><?php echo date('Y年 n月 j日 G:i', $comment->created_at); ?> </em> <br/> </div> <div class="comment" style="padding:5px 50px"> <br/> <div class="commentbody"><?php