I trying to retrieve data from DB...But I face some problem
Following is my coding:
In Controller :
public function actionFinalCheck()
{
$gametitle=GamesDevelopersApp::model()->find('develper_id=1',array('gametitle'));
$this->render('finalcheck',array('gametitle'=>$gametitle));
}
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