Include A Controller View In Another Controller View

Im using Yii framwork, I have two models (Forum and Topic) wich every forum can have many topics.

Now I want to display all forum’s topics in the view of my forum (view.php), after searching on web I found this instruction:

<?php $this->renderPartial("/topic/index",array('dataProvider' => new Topic)); ?>

But when i’m trying to display forum view i have this error:

Forum and its behaviors do not have a method or closure named "getData".

Some help please.

Forgive my bad english.

problem is here:

'dataProvider' => new Topic

Topic is a model and does not have getData method which is specific rather fo DataProvider… try to use something like:

'dataProvider' => $criteriaModel->search()