public function actionAdd_comment() { $model = new \frontend\models\Comment(); $model->create_time = time(); if ($model->load(Yii::$app->request->post()) && $model->save()) { echo 'Youre Comment Saved'; } else { echo 'fail'; } }
echo $details->orderNo; ?> " /> <input type="hidden" id="productId" value="<?php echo $detv['productId']; ?> " /> </div> </div> </div> </div> </div> <?php } else { $comment = new \frontend\models\Comment(); $commentLook = $comment->findByIdSelect($userId, GlobalArray::$commentTypeConstantArray['product'], $detv['id']); ?> <div> <div class="eva-img"><img src="<?php echo GlobalArray::$imgUrlArray['0'] . $detv['productLogo']; ?> " /><?php echo $detv['productName']; ?> </div> <div><?php echo date('Y-m-d', strtotime($details->orderPayTime)); ?> </div>