CHttpException

Car not found!

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

38         for ( $i = $baslangicZamani; $i <= $bitisZamani; $i = $i + 86400 ) {
39             $total = $total + $araba->avg_price;
40         }
41         echo $total;
42     }
43 
44     function actionShow($id) {
45 
46         $others = Arabalar::model()->findAll(array('limit'=>10,'order'=> 'id desc'));
47 
48         $item = Arabalar::model()->findByAttributes(array('slug' => $id));
49         if(!$item)
50             throw new CHttpException('404',Yii::t('arabalarModule.front','404text'));
51 
52         $this->pageTitle =$item->title;
53 
54         $item->counter = $item->counter +1;
55         //$item->save();
56 
57         $this->breadcrumbs[Yii::t('arabalarModule.front','moduletitle')] = Yii::app()->baseUrl . '/arabalar';
58         $this->breadcrumbs[$item->title] = Yii::app()->baseUrl . '/arabalar/'.$item->slug;
59 
60         $this->render('show', array(
61             'item' => $item,
62             '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-29 12:17:03 Apache Yii Framework/1.1.22