/** * Xem chi tiết tin khách tìm xe */ public function actionXem_chi_tiet() { $maTin = Yii::app()->request->getParam('id'); if ($maTin == '') { $this->redirect(Yii::app()->homeUrl); } $modelKTX = new Tinghepxe(); if (!($tinKTX = $modelKTX->getTinGhepXe($maTin))) { $this->redirect(['site/index']); } $this->render('xem_chi_tiet', ['tinKTX' => $tinKTX]); }
/** * Xem chi tiết tin Xe tìm khách */ public function actionXem_chi_tiet($condition = null) { $maTin = Yii::app()->request->getParam('id'); $modelXTK = new Tinghepxe(); if (!($tinXTK = $modelXTK->getTinGhepXe($maTin))) { $this->redirect(['site/index']); } $this->render('xem_chi_tiet', ['tinXTK' => $tinXTK]); }