CHttpException

Haber Bulunamadı

/var/www/vhosts/derinmotion.com/public_html/protected/modules/haberler/controllers/front/DefaultController.php(35)

23             'models' => $models,
24             'pages' => $pages
25         ));
26 
27     }
28 
29     function actionShow($id) {
30 
31         $others = Haberler::model()->findAll(array('limit'=>10,'order'=> 'id desc'));
32 
33         $item = Haberler::model()->findByAttributes(array('slug' => $id));
34         if(!$item)
35             throw new CHttpException('404',Yii::t('haberlerModule.front','404text'));
36 
37         $this->pageTitle =$item->title;
38 
39         $item->counter = $item->counter +1;
40         $item->save();
41 
42         $this->breadcrumbs[Yii::t('haberlerModule.front','moduletitle')] = Yii::app()->baseUrl . '/haberler';
43         $this->breadcrumbs[$item->title] = Yii::app()->baseUrl . '/haberler/'.$item->slug;
44 
45         $this->render('show', array(
46             'item' => $item,
47             'others' => $others

Stack Trace

#9
+
 /var/www/vhosts/derinmotion.com/public_html/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/derinmotion.com/public_html/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-28 18:27:27 Apache Yii Framework/1.1.26