Taggable demo
Taggable is a suite of classes for the Yii framework 2.0. It lets you handle the tagging of ActiveRecords with keywords or similar. The tags can be associated with or decoupled from a model (ActiveRecord), and can be sorted.
Tags applied to Heroes
Total 78 items.
- actor (92)
 - animation (6)
 - architecture (9)
 - Argentina (1)
 - Armenia (1)
 - art (59)
 - astronomy (4)
 - atheism (2)
 - Australia (4)
 - Austria (8)
 - Bahamas (2)
 - ballet (1)
 - Belgium (5)
 - biology (9)
 - blues (3)
 - Bulgaria (1)
 - Canada (5)
 - chemistry (1)
 - China (1)
 - classical (12)
 - Colombia (1)
 - composer (1)
 - computer science (1)
 - computers (9)
 - Czechia (2)
 - Denmark (4)
 - design (2)
 - director (44)
 - dog (1)
 - entrepreneur (10)
 - film (140)
 - France (60)
 - Germany (42)
 - humor (18)
 - Hungary (5)
 - Iceland (1)
 - India (4)
 - inventor (12)
 - Ireland (5)
 - Italy (21)
 - Jamaica (2)
 - Japan (6)
 - jazz (21)
 - journalism (6)
 - linguistics (1)
 - literature (109)
 - mathematics (12)
 - music (174)
 - Netherlands (35)
 - performer (4)
 - philosophy (15)
 - photography (6)
 - physics (16)
 - Poland (3)
 - politics (18)
 - psychology (2)
 - rock (109)
 - Romania (1)
 - Russia (12)
 - science (36)
 - Serbia (1)
 - singer (1)
 - soul (7)
 - South-Africa (2)
 - South-Korea (1)
 - space (2)
 - Spain (5)
 - sports (5)
 - strips (2)
 - Sweden (3)
 - Switzerland (6)
 - television (30)
 - tv (0)
 - UK (118)
 - Ukraine (1)
 - USA (246)
 - writer (1)
 - YouTube (2)
 
<?php
use yii\widgets\ListView;
?>
<?= ListView::widget([
    'dataProvider' => $dataProvider,
    'itemView' => function ($model, $key, $index, $widget) {
        return "$model->link ($model->modelCount)";
    },
    'listOptions' => [ 'class' => 'list-unstyled multi-columns' ]
]) ?>