How to retrieve data from db and display in view

I can’t understand the instruction and code provided by yii site.

And bellow is the code I tried by still can’t retrieve data.

Anyone have good example to show me how to retrieve data from DB and display into view ?

In Controller :

public function actionFinalCheck()





In View(PHP):

<?php print_r($gametitle); ?>

What I need is "select gametitle from db where developer_id=1" but in Yii I not sure how to do

OR any better way to retrieve data from DB and display in view ? Thanks

$gametitle = GamesDevelopersApp::model()->findAllByAttributes(array(

    'developer_id' => 1,