Hey guyz,
I am back again with a stupid question
Page 231 from the book…i did the cnages and now everytime i whant to go and view a comment from a issue/project i get and error like this one
[html]
CException
Property "IssueController._model" is not defined.
C:\xampp\htdocs\licenta\protected\controllers\IssueController.php(193)
181 Yii::app()->user->setFlash(‘commentSubmitted’, “Your comment has been added.”);
182 }
183 }
184 return $comment;
185 }
186 /**
187 * Returns the data model based on the primary key given in the GET variable.
188 * If the data model is not found, an HTTP exception will be raised.
189 * @param integer the ID of the model to be loaded
190 */
191 public function loadModel($withComments=false)
192 {
193 if($this->_model===null)
194 {
195 if(isset($_GET[‘id’]))
196 {
197 if($withComments)
198 {
199 $this->_model=Issue::model()->with(array(
200 ‘comments’=>array(‘with’=>‘author’)))->findbyPk($_GET[‘id’]);
201 }
202 }
203 else
204 {
205 $this->_model=Issue::model()->findbyPk($_GET[‘id’]);
[/html]
Can someone please he,p me…i am stuck here for 1 day already and is killing my sleep