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

Cgridview And Has_Many Relation

$
0
0
I have 2 models, author and post. Author has many posts, post belongs to only one author.

Also i have a cgridview in which I list all authors. Now I need to list all authors with theirs last post's name.
So post model's name attribute is column of cgridview. How do I do this?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



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