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.