CHttpException

Article not found!

/var/www/vhosts/goldentouch.com.tr/httpdocs/protected/modules/yerler/controllers/front/DefaultController.php(33)

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

Stack Trace

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