CHttpException

Haber Bulunamadı

/var/www/vhosts/piksconcept.com/httpdocs/protected/modules/blog/controllers/front/DefaultController.php(101)

089             'pages' => $pages,
090             'others' => $others,
091             'categories' => $categories,
092         ));
093     }
094 
095     function actionShow($id) {
096         $others = BlogPosts::model()->dileGore()->findAll(array('limit'=>10,'order'=> 'id desc'));
097         $categories = BlogCategories::model()->dileGore()->findAll();
098         $item = BlogPosts::model()->findByAttributes(array('slug' => $id));
099 
100         if(!$item){
101             throw new CHttpException('404',Yii::t('blogModule.front','404text'));
102         }
103         $this->pageTitle =$item->title;
104         $item->counter = $item->counter +1;
105         $item->save();
106         $this->breadcrumbs[Yii::t('blogModule.front','moduletitle')] = Yii::app()->baseUrl . '/haberler';
107         $this->breadcrumbs[$item->title] = Yii::app()->baseUrl . '/haberler/'.$item->slug;
108         $this->render('show', array(
109             'item' => $item,
110             'others' => $others,
111             'categories' => $categories,
112         ));
113     }

Stack Trace

#9
+
 /var/www/vhosts/piksconcept.com/httpdocs/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/piksconcept.com/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 18:12:32 Apache Yii Framework/1.1.25