Doubt about CGridView

How to put 2 different CGridViews from 2 different tables on only one page?

create 2 variables with 2 different data providers


<?php


public function actionIndex()

{

...

    $dataProvider1=new CActiveDataProvider("Category");

    $dataProvider2=new CActiveDataProvider("Product");

    $this->render('index', array(

	"dataProvider1" => $dataProvider1,

	"dataProvider2" => $dataProvider2,

    ));

}