CHttpException

Dữ liệu chưa được kích hoạt.

/home/common/protected/controllers/front/PostController.php(93)

081 
082     public function actionNews() {
083         $id = isset($_GET["category"]) ? (int) $_GET["category"] : null;
084 
085         if ($id != null) {
086             $model = Category::model()->findByAttributes(array("active" => 1, "id_category" => $id));
087             if ($model != null) {
088                 $this->pageTitle = $model->name;
089                 $this->metaDescription = strip_tags(addslashes($model->meta_description));
090                 $this->metaKeywords=$model->meta_keywords;
091                 $this->render("views.post.index");
092             } else {
093                 throw new CHttpException(404, "Dữ liệu chưa được kích hoạt.");
094             }
095         } else {
096             throw new CHttpException(404, "Dữ liệu chưa được kích hoạt.");
097         }
098     }
099 
100     /**
101      * Returns the data model based on the primary key given in the GET variable.
102      * If the data model is not found, an HTTP exception will be raised.
103      * @param integer the ID of the model to be loaded
104      */
105     public function loadModel($id) {

Stack Trace

#7
+
 /home/common/protected/components/WebApplicationEndBehavior.php(39): CApplication->run()
#9
+
 /home/thnienxp/domains/thanhnienxp.com/public_html/index.php(30): CComponent->__call("runEnd", array("front"))
25 require_once($extCommon . DIRECTORY_SEPARATOR . 'libs' . DIRECTORY_SEPARATOR . 'global.php');
26 Yii::import('extensions.EZendAutoloader', true);
27 EZendAutoloader::$prefixes = array('Zend', 'Skoch', 'Polycast');
28 EZendAutoloader::$basePath = $extCommon . DIRECTORY_SEPARATOR;
29 Yii::registerAutoloader(array("EZendAutoloader", "loadClass"), true);
30 $app->runEnd('front');
31 ?>
32 
2024-03-28 18:15:51 Apache/2 Yii Framework/1.1.18