Datalist repeat columns

In Prado, if we need repat columns, we just simple use this code:

Any simple way to generate dynamic repeat columns in Yii?

Thanks

In Yii, you use PHP. ;)

I tried like this:

But it doesn't works properly. Each rows showing the same result in columns.

Quote

| Result 1 | Result 1 | Result 1 |

| Result 2 | Result 2 | Result 2 |

The result what we need is…

Quote

| Result 1 | Result 2 | Result 3 |

| Result 4 | Result 5 | Result 6 |

Try something like this:

Thanks Mike… you solve my problem  :)

Btw, one more a newbie question  ;D

How if I want to repeat like this?

Quote

| Result 1 | Result 4 | Result 7 |

| Result 2 | Result 5 | Result 8 |

| Result 3 | Result 6 | Result 9 |