CHttpException

The requested page does not exist.

/home/forge/partshotline.ca/protected/controllers/BlogController.php(96)

084 
085     /**
086      * Returns the data model based on the primary key given in the GET variable.
087      * If the data model is not found, an HTTP exception will be raised.
088      * @param integer $id the ID of the model to be loaded
089      * @return Blog the loaded model
090      * @throws CHttpException
091      */
092     public function loadModel($id)
093     {
094         $model=Blog::model()->findByPk($id);
095         if($model===null)
096             throw new CHttpException(404,'The requested page does not exist.');
097         return $model;
098     }
099 
100 
101     /**
102      * Performs the AJAX validation.
103      * @param Blog $model the model to be validated
104      */
105     protected function performAjaxValidation($model)
106     {
107         if(isset($_POST['ajax']) && $_POST['ajax']==='blog-form')
108         {

Stack Trace

#0
+
 /home/forge/partshotline.ca/protected/controllers/BlogController.php(58): BlogController->loadModel("7")
53     {
54 
55         $blogPopular = Blog::model()->getPopularBlog();
56         
57         $this->render('view',array(
58             'model'=>$this->loadModel($id),'blogPopular'=>$blogPopular,
59         ));
60     }
61 
62 
63     /**
#15
+
 /home/forge/partshotline.ca/index.php(22): CApplication->run()
17 defined('YII_DEBUG') or define('YII_DEBUG', true);
18 // specify how many levels of call stack should be shown in each log message
19 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
20 
21 require_once($yii);
22 Yii::createWebApplication($config)->run();
2024-03-28 12:33:27 nginx/1.22.1 Yii Framework/1.1.26