func (this *HostGroupController) Edit() { item := models.HostGroup{GroupName: this.GetString("name")} entity, _ := item.Get() this.Data["entity"] = entity this.TplName = "admin/host_group_edit.html" }