Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Instance Gridview Widget With Model Relation Data

$
0
0
I have a model that results me an array of objects and when i loop trough i want to make several instances of widget gridview and pass along an array of object that comes from a relation, however the gridview is expecting a dataprovider and i'm not sure how to convert my data.

I have searched arround and someone else had the same issue but it was not solved:
http://stackoverflow.com/questions/5647190/using-cgridview-for-a-models-association

Anyone an idea what the best approach is to solve this issue?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>