CHttpException

The requested page does not exist.

/srv/www/ylcss_web/protected/controllers/SiteController.php(150)

138     /**
139      * Returns the data model based on the primary key given in the GET variable.
140      * If the data model is not found, an HTTP exception will be raised.
141      * @param string $name the uniqueName of the model to be loaded
142      * @return Pages the loaded model
143      * @throws CHttpException
144      */
145     public function loadModel($name)
146     {
147         /** @var Pages $model */
148         $model=Pages::model()->findByAttributes(array('uniqueName'=>$name));
149         if($model===null || !$model->display)
150             throw new CHttpException(404,'The requested page does not exist.');
151         return $model;
152     }
153 }

Stack Trace

#0
+
 /srv/www/ylcss_web/protected/controllers/SiteController.php(54): SiteController->loadModel("tender")
49 
50         if (!isset($_GET['name'])) {
51             $this->redirect('/');
52         }
53 
54         $pageModel = $this->loadModel($_GET['name']);
55 
56         if (!empty($pageModel->password)) {
57             if (isset($_POST['Pages'])
58                 && isset($_POST['Pages']['password'])
59                 && md5($_POST['Pages']['password']) == $pageModel->password){
#8
+
 /srv/www/ylcss_web/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2024-03-28 22:27:52 nginx/1.16.1 Yii Framework/1.1.18