CHttpException

The requested page does not exist.

/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/controllers/SiteController.php(109)

097     {
098 
099         $this->breadcrumbs[] = '校園影片';
100 
101         $this->render('video');
102     }
103 
104     public function loadModel($name)
105     {
106         /** @var Pages $model */
107         $model = Pages::model()->findByAttributes(array('uniqueName' => $name));
108         if ($model === null || !$model->display)
109             throw new CHttpException(404, 'The requested page does not exist.');
110         return $model;
111     }
112 
113     public function actionContent($name)
114     {
115         $model = $this->loadModel($name);
116 
117         return $this->renderPartial('/layouts/page/_iframe_content', [
118             'content' => $model->getTranslation()->body
119         ]);
120     }
121 

Stack Trace

#0
+
 /srv/vhosts/skhsjs.edu.hk/httpdocs/protected/controllers/SiteController.php(43): SiteController->loadModel("%E6%AF%8F%E6%9C%88%E9%99%BD%E5%85%89%E6%96%B0%E8%81%9E")
38 
39         if (!isset($_GET['name'])) {
40             $this->redirect('/');
41         }
42 
43         $model = $this->loadModel($_GET['name']);
44 
45         if (!empty($model->password)) {
46             if (isset($_POST['Pages'])
47                 && isset($_POST['Pages']['password'])
48                 && md5($_POST['Pages']['password']) == $model->password
#8
+
 /srv/vhosts/skhsjs.edu.hk/httpdocs/index.php(17): CApplication->run()
12 // specify how many levels of call stack should be shown in each log message
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
14 
15 require_once($autoload);
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-03-28 19:09:49 Apache Yii Framework/1.1.21