金沙4166.am官网登录_「4166am手机app」- 首页

CHttpException

The requested page does not exist.

/srv/vhosts/bethel.edu.hk/httpdocs/protected/controllers/SiteController.php(140)

128         $dataProvider->sort->defaultOrder = "publishDate DESC";
129 
130         Yii::app()->schoolWeb->defaultPageSize = 10;
131         $this->render('homework/index', array("dataProvider" => $dataProvider, "model" => $model));
132     }
133 
134 
135     public function loadModel($name)
136     {
137         /** @var Pages $model */
138         $model = Pages::model()->findByAttributes(array('uniqueName' => $name));
139         if ($model === null || !$model->display)
140             throw new CHttpException(404, 'The requested page does not exist.');
141         return $model;
142     }
143 
144     public function content($name)
145     {
146         $model = $this->loadModel($name);
147 
148         return $this->renderPartial('/layouts/page/_iframe_content', [
149             'content' => $model->getTranslation()->body,
150             'pageModel' => $model,
151         ]);
152     }

Stack Trace

#0
+
 /srv/vhosts/bethel.edu.hk/httpdocs/protected/controllers/SiteController.php(43): SiteController->loadModel("校友校董選舉201819")
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/bethel.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($yii);
16 //require_once($autoload);
17 Yii::createWebApplication($config)->run();
2019-10-15 15:39:22 Apache Yii Framework/1.1.19