CHttpException

Duyuru Bulunamadı!

/var/www/vhosts/1905ags.org/httpdocs/protected/modules/duyurular/controllers/front/DefaultController.php(88)

076                     }
077                 }
078                 $this->redirect('success');
079             }
080         }
081         $this->pageTitle = "Duyuru Gönder";
082         $this->render('submit',array('model'=>$model));
083     }
084 
085     function actionShow($id) {
086         $item = Duyurular::model()->findByAttributes(array('slug' => $id));
087         if(!$item)
088             throw new CHttpException('404','Duyuru Bulunamadı!');
089 
090         if(Yii::app()->wbruser->isLoggedIn()){
091             $id = Yii::app()->wbruser->userId;
092             $hsql = "Select * From tbl_duyurular";
093             $model = Duyurular::model()->findAllBySql($hsql);
094             if (!$model){
095                 $addsql = "Select * From tbl_duyurular WHERE id = $item->id";
096                 $news = Duyurular::model()->findByPk($item->id);
097                 $news->save();
098             }
099 
100         }

Stack Trace

#9
+
 /var/www/vhosts/1905ags.org/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/1905ags.org/httpdocs/index.php(23): CComponent->__call()
18         return parent::init();
19     }
20 }
21 
22 $app = new KraftCMS($config);
23 $app->runEnd('front');
24 
2024-03-28 13:47:33 Apache Yii Framework/1.1.22