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?
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?