ParseError

syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)

/root/Dropbox/manesht_usa/protected/views/course/view.php(366)

354         
355         $.ajax({
356             url: '<?php echo Yii::app()->request->baseUrl; ?>/comment/view?articleid=<?php echo $model->id ?>&type=course&lang=<?php echo $lang; ?>',
357         }).done(function(data) {    
358             $('#commentdiv').html(data);
359         });
360     });
361     function doComment() 
362     {
363         ajaxComment(<?php echo $model->id . ",'course','" . $lang . "'," . (Yii::app()->user->isGuest ? '1' : '0') . ",'" . Yii::app()->request->baseUrl . "'"; ?>);
364         return;
365     }
366 </script>

Stack Trace

#3
+
 /root/Dropbox/manesht_usa/protected/controllers/CourseController.php(195): CController->render("view", array("model" => Course, "issend" => "false", "bookmodel" => Book))
190             }
191 
192             $this->render('view', array(
193                 'model' => $model,
194                 'issend' => $issend,
195                 'bookmodel' => $bookmodel,
196             ));
197         }
198     }
199 
200     public function actionBook($id) {
#18
+
 /root/Dropbox/manesht_usa/index.php(16): CApplication->run()
11 
12 require_once($yii);
13 //require dirname(__FILE__).'/protected/vendor/autoload.php';
14 
15 
16 Yii::createWebApplication($config)->run();
2024-03-28 12:38:23 nginx/1.25.4 Yii Framework/1.1.20