CHttpException

404text

/home/u5489196/public_html/ar/protected/modules/urunler/controllers/front/DefaultController.php(84)

72             'cid' => $cat->id,
73             'cat' => $cat
74         ));
75 
76     }
77 
78     function actionShow($id) {
79         $this->layout="//layouts/fullwidth";
80         $others = Urunler::model()->findAll(array('limit'=>10,'order'=>'t.order asc'));
81 
82         $item = Urunler::model()->findByAttributes(array('slug' => $id));
83         if(!$item)
84             throw new CHttpException('404',Yii::t('urunlerModule.front','404text'));
85 
86         $this->pageTitle =$item->title;
87 
88         $item->counter = $item->counter +1;
89         $item->save();
90 
91         $this->breadcrumbs[Yii::t('urunlerModule.front','moduletitle')] = Yii::app()->baseUrl . '/urunler';
92         $this->breadcrumbs[$item->title] = Yii::app()->baseUrl . '/urunler/'.$item->slug;
93 
94         $this->render('show', array(
95             'item' => $item,
96             'others' => $others

Stack Trace

#9
+
 /home/u5489196/public_html/ar/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
+
 /home/u5489196/public_html/ar/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 10:34:00 LiteSpeed Yii Framework/1.1.20