CHttpException

The requested page does not exist.

/home/hfsindon/tnindonesia.id/protected/controllers/ArticleController.php(67)

55     {
56         $model = Article::model()->findbyPk($id);
57         if($model===null){
58             throw new CHttpException(404,'The requested page does not exist.');
59         }
60         return $model;
61     }
62 
63     public function loadModelSlug($slug)
64     {
65         $model = Article::model()->findByAttributes(array('slug'=>$slug));
66         if($model===null){
67             throw new CHttpException(404,'The requested page does not exist.');
68         }
69         return $model;
70     }
71 }

Stack Trace

#0
+
 /home/hfsindon/tnindonesia.id/protected/controllers/ArticleController.php(7): ArticleController->loadModelSlug("apa-sejatinya-penyakit-trigeminal-neuralgia")
02 
03 class ArticleController extends Controller
04 {
05     public function actionSlug($slug)
06     {
07         $model = $this->loadModelSlug($slug); //$this->loadModel($id);
08 
09         Yii::app()->clientScript->registerMetaTag($model->getShortDescription(230), 'description');
10         Yii::app()->clientScript->registerMetaTag(Yii::app()->createAbsoluteUrl('story/'.$model->slug), 'og:url');
11         Yii::app()->clientScript->registerMetaTag('article', 'og:type');
12         Yii::app()->clientScript->registerMetaTag($model->getShortDescription(230), 'og:description');
#10
+
 /home/hfsindon/tnindonesia.id/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 16:17:08 LiteSpeed Yii Framework/1.1.19