I have been practicing the Yii Book Track star Application and as per the guidelines of the book i have created everything and it went on well . But i am unable to see the issues and i am getting the below problem while seeing the hyperlink
http://localhost/anits/index.php?r=project/view&id=1
Description
Missing argument 1 for ProjectController::loadModel(), called in D:\wamp\www\anits\protected\controllers\ProjectController.php on line 65 and defined
Source File
D:\wamp\www\anits\protected\controllers\ProjectController.php(174)
00162: $model->attributes=$_GET[‘Project’];
00163:
00164: $this->render(‘admin’,array(
00165: ‘model’=>$model,
00166: ));
00167: }
00168:
00169: /**
00170: * Returns the data model based on the primary key given in the GET variable.
00171: * If the data model is not found, an HTTP exception will be raised.
00172: * @param integer the ID of the model to be loaded
00173: */
00174: public function loadModel($id)
00175: {
00176: $model=Project::model()->findByPk((int)$id);
00177: if($model===null)
00178: throw new CHttpException(404,‘The requested page does not exist.’);
00179: return $model;
00180: }
00181:
00182: /**
00183: * Performs the AJAX validation.
00184: * @param CModel the model to be validated
00185: */
00186: protected function performAjaxValidation($model)