CHttpException

Haber Bulunamadı

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

081             'pages' => $pages,
082             'others' => $others,
083             'categories' => $categories,
084         ));
085     }
086 
087     function actionShow($id) {
088         $others = BlogPosts::model()->findAll(array('limit'=>3,'order'=> 'id desc'));
089         $categories = BlogCategories::model()->findAll();
090         $item = BlogPosts::model()->findByAttributes(array('slug' => $id));
091 
092         if(!$item){
093             throw new CHttpException('404',Yii::t('blogModule.front','404text'));
094         }
095         $this->pageTitle =$item->title;
096         $this->breadcrumbs[Yii::t('blogModule.front','moduletitle')] = Yii::app()->baseUrl . '/blog';
097         $this->breadcrumbs[$item->title] = Yii::app()->baseUrl . '/blog/'.$item->slug;
098         $this->render('show', array(
099             'item' => $item,
100             'others' => $others,
101             'categories' => $categories,
102         ));
103     }
104 }

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 12:00:40 Apache Yii Framework/1.1.22