Yii Jasphp Reporting Extension :: Usage


I just installed yii jasPHP extenstion for reporting my application. I need some guide or example to use more. I can send a string to pdf. But I need a complete table from database.

How can I do that… ? please help me out

My Controller

public function actionReport()


				//$s = 'Welcome to review reports as well';

				$q = 'SELECT email FROM users where ID = 1';

				$cmd = Yii::app()->db->createCommand($q);

				$result= $cmd -> queryScalar();


				Yii::app()->jasPHP->create(getcwd().'/reports/','report1.jrxml',array('title' => $result,));


please let me know some examples. Thanks in advanced