コード例 #1
0
ファイル: ReportsController.php プロジェクト: Griff19/it_base
 public function actionInventory($id)
 {
     $provider = Reports::getInventoryData($id);
     return $this->render('inventory_index', ['provider' => $provider, 'id' => $id]);
 }
コード例 #2
0
 /**
  * Отражаем устройства на рабочем месте
  * @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]);
 }