CHttpException

Yazı Bulunamadı

/home/u1493004/ayhankuzu.com/protected/modules/blog/controllers/front/DefaultController.php(130)

118      'yazilar' => $yazilar,
119      'cats' => $cats,
120      'sons' => $sons,
121      'pages'=>$pages
122    ));
123   }
124 
125 
126   function actionShow($slug) {
127     $this->layout = '//layouts/blogcontent';
128     $post = Post::model()->with('category')->findByAttributes(array('slug' => $slug));
129     if(!$post){
130       throw new CHttpException(404,'Yazı Bulunamadı');
131     }
132     $postCat = BlogCategory::model()->findByPk($post->category_id);
133 
134     $cats = BlogCategory::model()->findAll();
135     $criteria = new CDbCriteria;
136     $criteria->limit = 5;
137     $criteria->select = array('slug,title');
138     $criteria->order = 'RAND()';
139     $sons = Post::model()->findAll($criteria);
140     $post->counter = $post->counter +1;
141     $post->save();
142     // META

Stack Trace

#9
+
 /home/u1493004/ayhankuzu.com/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
+
 /home/u1493004/ayhankuzu.com/index.php(22): CComponent->__call("runEnd", array("front"))
17         return parent::init();
18     }
19 }
20 
21 $app = new kraftCMS($config);
22 $app->runEnd('front');
23 
2024-03-19 14:06:45 LiteSpeed Yii Framework/1.1.21