/** * 无线网络 */ public function actionWireless() { $lists = WirelessDeviceInfo::getDeviceList(); $selected = ViewTemplate::getTempateSet(ViewTemplate::TYPE_WIFI); $categorys = ArrayHelper::map(WirelessDeviceCategory::find()->all(), "node_group", "name"); return $this->render('editWireless', ['deviceList' => $lists, 'selected' => json_encode($selected), 'type' => ViewTemplate::TYPE_WIFI, "categorys" => $categorys]); }
public function getType() { return $this->hasOne(WirelessDeviceCategory::className(), ["id" => 'categoryId']); }