public function actionPrint($id) { $model = new Orders(); $this->layout = "//print"; return $this->render('print', ['orderInfo' => Orders::find()->where(["id" => $id])->with(["cityDetailsSzamla", "cityDetailsShip"])->asArray()->one(), 'products' => $model->calcPrice($id)]); }