CHttpException

Page is not found

/srv/www/apppicker.com/htdocs/protected/controllers/DevelopernewsController.php(10)

01 <?php
02 
03 class DevelopernewsController extends Controller
04 {
05     public function actionDetails($id, $slug = '', $version = null)
06     {
07         $post = PressRelease::loadArticleById($id);
08 
09         if (empty($post)) {
10             throw new CHttpException(404, "Page is not found");
11         }
12 
13         $post->guest_writer = $post->cv->guest_writer;
14         $post->bio = $post->cv->bio;
15 
16         if (!$post || ($version && !$post->switchToVersion($version))) {
17             throw new CHttpException(404, "Page is not found");
18         }
19         if($post->slug != $slug){
20             ViewHelper::redirect($id, RatingTypes::TYPE_ARTICLE_PRESS_RELEASE);
21         }
22 

Stack Trace

#9
+
 /srv/www/apppicker.com/htdocs/index.php(58): CApplication->run()
53 
54 if (!isset($app->params[Configuration::PREFIX_ELASTICA]) || $app->params[Configuration::PREFIX_ELASTICA] == null || $app->params[Configuration::PREFIX_ELASTICA] == '') {
55     $app->params->add(Configuration::PREFIX_ELASTICA, '1');
56 }
57 
58 $app->run();
2024-03-19 04:46:59 nginx/1.20.1 Yii Framework/1.1.16