CHttpException

Haber Bulunamadı

/var/www/vhosts/prestijaltyapi.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         $this->pageDescription = $item->meta_description;
39         $this->metaTitle = $item->meta_title;
40         if($item->meta_title){
41             $this->pageTitle = $item->meta_title;
42         }
43 
44         $item->counter = $item->counter +1;
45         $item->save();
46 
47         $this->breadcrumbs[Yii::t('haberlerModule.front','moduletitle')] = Yii::app()->baseUrl . '/haberler';

Stack Trace

#9
+
 /var/www/vhosts/prestijaltyapi.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/prestijaltyapi.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 14:16:04 Apache Yii Framework/1.1.20