Example #1
0
 public function actionAddress()
 {
     $id = Yii::$app->user->identity->id;
     $billing = BillingAddress::find()->where(['user_id' => $id])->all();
     $delivery = DeliveryAddress::find()->where(['user_id' => $id])->all();
     return $this->render('address', ['billing' => $billing, 'delivery' => $delivery]);
 }