CHttpException

Ürün Bulunamadı

/var/www/vhosts/ofisermobilya.com.tr/httpdocs/protected/modules/urunler/controllers/front/DefaultController.php(224)

212             'activeClass'=>$activeClass,
213         ));
214     }
215 
216 
217 
218     function actionShow($id) {
219         $this->customClass = 'urun-detay';
220 
221         $others = Urunler::model()->findAll(array('limit'=>10,'order'=> 't.order desc'));
222         $item = Urunler::model()->findByAttributes(array('id' => $id));
223         if(!$item){
224             throw new CHttpException('404',Yii::t('urunlerModule.front','404text'));
225         }
226 
227         $criteria = new CDbCriteria;
228         $criteria->limit = 10;
229         $criteria->select = array('*');
230         $criteria->order = 'RAND()';
231 
232         $random = Urunler::model()->findAll($criteria);
233 
234         $this->pageTitle =$item->title;
235         $cat = UrunKategori::model()->findByPk($item->category_id);
236         $item->counter = $item->counter +1;

Stack Trace

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