Hi everybody,
I just wanted to say that I found a syntax error in the Blog tutorial here (page 34 in the PDF version).
The following code snippet:
public function actionView()
{
$this->render('view',array(
$post=$this->loadModel();
$this->render('view',array(
'model'=>$post,
));
));
}
Should instead be replaced by the following:
public function actionView()
{
$post=$this->loadModel();
$this->render('view',array(
'model'=>$post,
));
}
The blog application in the demos folder that comes with yii doesn’t have the error though.