Undefined Variable: Issuedataprovider

I m working studying Web Application Development With Yii And PHP and have the following problem

Undefined variable: issueDataProvider

I have attached the screenshots below, help on this would be greatly appreciated.

5553

Screenshot from 2014-05-12 09:59:50.png

5554

Screenshot from 2014-05-12 10:00:04.png

You have not altered action view method

you have not passed issuedateprovider :)

Just copy below code… it should work





/**

* Displays a particular model.

*/

public function actionView()

{

$issueDataProvider=new CActiveDataProvider('Issue', array(

'criteria'=>array(

'condition'=>'project_id=:projectId',

'params'=>array(':projectId'=>$this->loadModel()->id),

),

'pagination'=>array(

'pageSize'=>1,

),

));

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

'model'=>$this->loadModel(),

'issueDataProvider'=>$issueDataProvider,

));

}



i have changed the code as you have mentioned above but it’s still showing the same error