Logo white

Alexey Boroda / extrem-new

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • extrem-new
  • frontend
  • views
  • comments
  • index.php
  • Changes: ...
    b224f0ae
    -Comments added (with default template)
    -Discounts added
    -Dynamic menu
    Alexey Boroda authored
    2016-09-30 10:42:52 +0300  
    Browse Code ยป
index.php 270 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php
/**
 * @var Comments $comments
 */
use common\models\Comments;
use common\modules\comment\widgets\CommentWidget;

?>


<?php
$comments = new Comments([
    'id' => 1,
]);
echo CommentWidget::widget([
    'model' => $comments,
    'entityIdAttribute' => 'id'
]);
?>