A design question.

My view has a repetitive task which I put in the local function. This function is called as many times depending on the number of records in the result set.

The only problem I am facing is that I cannot use:

$this->widget('CStarRating', …); inside that function.

What would be the appropriate solution?

Thanks

I solved it by making a widget. But I am not happy as there are 100 - 1000 result on the page. Just for 3 CStarRating shows me radios till all page is loaded.

Is flush an option?

View cache?

Maybe with a data dependency.