Rendering Belongs To Relation Array


I have 2 models A and B, with 1:N relation between them.

i am running a small view code in AController

public function actionView($id)


    $mymodel = $this->loadModel($id);

    $populatedB = $mymodel->bs;







now on the A’s view’s front i want to display it along with A’s view, what is the best way to do that if i want to show only selected fields of B…?

-Big o