public function actionInventory($id) { $provider = Reports::getInventoryData($id); return $this->render('inventory_index', ['provider' => $provider, 'id' => $id]); }
/** * Отражаем устройства на рабочем месте * @param $id_wp * @return string */ public function actionDevices($id_wp) { $dataProvider = Reports::getInventoryData($id_wp); return $this->render('devices', ['dataProvider' => $dataProvider, 'id_wp' => $id_wp]); }