Yii 1.1: yii-cumulus

cumulus tag cloud ported over from wordpress
2 followers

...overview of the extension...

Requirements

...requirements of using this extension (e.g. Yii 1.1 or above)...

Usage

Tagcloud accepts either an array, or an array of objects

ex1. Here we pass an array and it will display the tagcloud with just 2 tags.

<?php
--view--
$tags= array('tag1','tag2');
  $this->widget('application.extensions.cumulus.Tagcloud.php', 
        array(
         'tags' =>$tags,    
        ));
?>

ex2. Here we pass an array of objects and it will display the tagcloud with all items in the object array

<?php
--view--
$tags= Tag::model()->findall();
  $this->widget('application.extensions.cumulus.Tagcloud.php', 
        array(
         'tags' =>$tags,    
        ));
?>

Resources

...xternal resources for this extension...

Be the first person to leave a comment

Please to leave your comment.

Create extension