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
5554
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
5554
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