Ejemplo n.º 1
0
ActiveForm::end();
Pjax::end();
?>
  </div>
</div>

<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title"><?php 
echo Yii::t('app', 'All comments');
?>
</h3>
  </div>
  <div class="panel-body">
   <?php 
$comment = \frontend\models\Comment::findAll(['post_id' => $model->id, 'status' => 1]);
foreach ($comment as $k => $v) {
    ?>

  <div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title"><a href="<?php 
    echo $v['url'];
    ?>
"><?php 
    echo $v['author'];
    ?>
</a> - <?php 
    echo date('Y/m/d H:i', $v['create_time']);
    ?>
</h3>