I have found out that whenever I click on the project id link in the project listing page that is (/trackstar/index.php?r=project) I am redirected to the blank page which is (/trackstar/index.php?r=project/view&id=1). I am unable to find out where problem lies. I am now specifically stating the code where I have made changes.
This is from projectcontroller.php
public function actionView($id)
{
$issueDataProvider = new CActiveDataProvider('Issue',array(
'criteria' => array(
'condition' => 'project_id = :projectId',
'params' => array(
':projectId' => $id),
),
'pagination' => array(
'pageSize' => 1,
),
));
$this->render('view',array(
'model'=>$this->loadModel($id),
'issueDataProvider' => $issueDataProvider,
));
}
This is from /project/view.php
widget('zii.widgets.CListView', array(
'dataProvider' => $issueDataProvider,
'itemView' => '/issue/_view',
)); ?>
& this is from /issue/_view.php
[b]getAttributeLabel('name')); ?>:[/b]
name), array('issue/view', 'id' => $data->id)); ?>
[b]getAttributeLabel('description')); ?>:[/b]
description); ?>
[b]getAttributeLabel('type_id')); ?>:[/b]
type_id); ?>
[b]getAttributeLabel('status_id')); ?>:[/b]
status_id); ?>