Yii Masonry Style [ Like Pinterest ] Extension

Yii Masonry Style v1.0 [color="#8b0000"]beta[/color] [ Yii Extension ]


[/b]Hello guys,

[size=“2”]Yii Masonry Style it’s new [/size][size=“2”]extension[/size][size=“2”] for yii to view posts or photos like [/size][size=“2”]pinterest… [/size][size=“2”]It’s my first extension for yii so please try it and give me your feedback.[/size]


  • infinity scrolling.
  • Default theme.


[font="Verdana, Arial, Helvetica, sans-serif"][size="2"]Just copy this code for your index page.[/size][/font]

$this->widget('zii.widgets.CListView', array(

'id' => 'postsIndex',



'itemsCssClass'=>'yiiMasonry-200', // Optional: Just theme, to use this theme you have to keep rowSelector => '.view', change this line if you have custom theme.

'template' => '{items} {pager}',

'pager' => array(

 'class' => 'ext.yiiMasonry.yiiMasonry',

 'rowSelector'=>'.view', // row class

 'listViewId' => 'postsIndex', // Container id

 'header' => '',)


Ex: Websites used Yii Masonry Style



[color="#008000"]Please report issues and give me feedback[/color]

[color="#333333"][font="Helvetica, arial, freesans, clean, sans-serif"][size="4"]4116


Nicely done! Was looking for something like this. Thanks!

your welcome, I’m waiting for your feedback :)

Please provide the view and controller examples for this.