Comus demo

This is a demonstration of the yii2-comus comment-module for Yii2-sites.

The following users are registered on this site (there may be more as new users are registered).

Registered users

User name Full name Role
vincent Vincent the Visitor
amy Amy the Author
ed Ed the Editor
wendy Wendy the Weekend-editor
pam Pam the Publisher
mo Mo the Moderator moderator
sal Sal the Support Manager
alice Alice the Administrator admin, and therefore also a moderator

They all have the same password: '123456'. Feel free to log in as any of these users and explore her or his possibilities. If you log in as 'mo' or 'alice', you'll see a new menu item Comments. It leads to Comus' comment overview for moderators.

The rather silly Lucky Numbers in the site's top menu are invented to comment on.

Here are the Lucky Numbers, with Comus' CommentCount-widget:

Showing 21-27 of 27 items.
alice's LuckyNumber: 567
amy's LuckyNumber: 2
amy's LuckyNumber: 1212
ed's LuckyNumber: 65535
amy's LuckyNumber: 33
alice's LuckyNumber: 313
alice's LuckyNumber: 22

Look at some Lucky Numbers to get a feel for Comus in action.

<?= ListView::widget([
    'dataProvider' => $luckyNumbers,
    'itemView' => function ($model, $key, $index, $widget)  {
        $name = Html::a($model->createdBy->name, [ 'profile/view', 'id' => $model->created_by ]);
        $number = Html::a($model->number, [ 'lucky-number/view', 'id' => $key ]);
        $count = CommentCount::widget([
            'model' => $model
        return "$name's LuckyNumber: <strong>{$number}</strong>&emsp;$count";
]) ?>