CHttpException

Proje Bulunamadı!

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

17         $models = $dataProvider->getData(); 
18         $this->breadcrumbs[Yii::t('front','titleprojects')] = Yii::app()->baseUrl . '/projeler';
19         $this->render('index', array(
20             'models' => $models,
21             'dataProvider' => $dataProvider, 
22             'itemCount' => $count,
23         ));
24     }
25     function actionShow($id) {
26 
27         $item = Projeler::model()->findByAttributes(array('slug' => $id));
28         if(!$item)
29             throw new CHttpException('404','Proje Bulunamadı!');
30         $this->pageTitle = Yii::t('front','titleprojects').' | '.$item->title;
31         $this->breadcrumbs[Yii::t('front','titleprojects')] = Yii::app()->baseUrl . '/projeler';
32         $this->breadcrumbs[$item->title] = Yii::app()->baseUrl . '/projeler/show/'.$item->id;
33 
34         $this->render('show', array(
35             'item' => $item
36         ));
37     }
38 }

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-29 15:21:22 Apache Yii Framework/1.1.20