CHttpException

Yazı Bulunamadı

/var/www/vhosts/halilhilmizade.com.tr/httpdocs/protected/modules/blog/controllers/front/DefaultController.php(88)

076         echo json_encode($new_array);
077 
078     }
079 
080 
081     function actionShow($id) {
082 
083 
084       $post = Post::model()->with('category')->findByAttributes(array('slug' => $id));
085       $cats = BlogCategory::model()->findAll();
086       $sons = Post::model()->findAllByAttributes(array('category_id'=>$post->category_id),array('order' => 'id desc','limit'=>5));
087       if(!$post)
088         throw new CHttpException(404,'Yazı Bulunamadı');
089 
090     $this->pageTitle = $post->title;
091 
092     $this->breadcrumbs[$post->category->title] = '/blog/kategori/'.$post->category->slug;
093     $this->breadcrumbs[$post->title] = $post->url;
094 
095     $this->render('show', array(
096         'item' => $post,
097         'cats' => $cats,
098         'sons' => $sons
099     ));
100 }

Stack Trace

#9
+
 /var/www/vhosts/halilhilmizade.com.tr/httpdocs/protected/components/WebApplicationEndBehavior.php(32): CApplication->run()
27         // Attach the changeModulePaths event handler
28         // and raise it.
29         $this->onModuleCreate = array($this, 'changeModulePaths');
30         $this->onModuleCreate(new CEvent($this->owner));
31 
32         $this->owner->run(); // Run application.
33     }
34 
35     // This event should be raised when CWebApplication
36     // or CWebModule instances are being initialized.
37     public function onModuleCreate($event)
#11
+
 /var/www/vhosts/halilhilmizade.com.tr/httpdocs/index.php(26): CComponent->__call("runEnd", array("front"))
21         return parent::init();
22     }
23 }
24 //$_SERVER['HTTPS']='on';
25 $app = new kraftCMS($config);
26 $app->runEnd('front');
2024-03-28 17:52:04 Apache Yii Framework/1.1.19