CHttpException

Haber Bulunamadı!

/var/www/vhosts/angikad.org.tr/public_html/protected/modules/haberler/controllers/front/DefaultController.php(94)

082 
083         $this->render('index', array(
084             'models' => $models,
085             'pages' => $pages
086         ));    
087 
088     }
089 
090     function actionShow($id) {
091 
092         $item = Haberler::model()->findByAttributes(array('slug' => $id));
093         if(!$item)
094             throw new CHttpException('404','Haber Bulunamadı!');
095 
096         if(Yii::app()->wbruser->isLoggedIn()){
097             $id = Yii::app()->wbruser->userId;
098             $hsql = "Select * From tbl_haberler WHERE FIND_IN_SET('$id',okuyanlar) AND id = $item->id";
099             $model = Haberler::model()->findAllBySql($hsql);
100             if (!$model){
101                 $addsql = "Select * From tbl_haberler WHERE id = $item->id";
102                 $news = Haberler::model()->findByPk($item->id);
103                 $news->okuyanlar = $news->okuyanlar.','.Yii::app()->wbruser->userId;
104                 $news->save();
105             }
106 

Stack Trace

#9
+
 /var/www/vhosts/angikad.org.tr/public_html/protected/components/WebApplicationEndBehavior.php(25): CApplication->run()
20         // Attach the changeModulePaths event handler
21         // and raise it.
22         $this->onModuleCreate = array($this, 'changeModulePaths');
23         $this->onModuleCreate(new CEvent($this->owner));
24 
25         $this->owner->run(); // Run application.
26     }
27 
28     // This event should be raised when CWebApplication
29     // or CWebModule instances are being initialized.
30     public function onModuleCreate($event)
#11
+
 /var/www/vhosts/angikad.org.tr/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 20:06:38 Apache Yii Framework/1.1.20