func (VS *Server) showItems(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	cat := VS.getCategoryByID(c, id, "h_data", "showItems", "cat := VS.getCategoryByID")
	items := VS.getAllItemsByCategory(c, id, "h_data", "showItems", "items := VS.getAllItemsByCategory")
	JSON, err := json.Marshal(items)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"items": items,
		"cat":   cat,
		"JSON":  string(JSON),
	}, "items-category.html")
}
// Shows all the items of the category selected
Shows all the items of the category selected
// Shows all the items of the category selected
func (VS *Server) showItems(c *gin.Context) {
	id, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	cat := VS.getCategoryByID(c, id, "h_data", "showItems", "cat := VS.getCategoryByID")
	items := VS.getAllItemsByCategory(c, id, "h_data", "showItems", "items := VS.getAllItemsByCategory")
	JSON, err := json.Marshal(items)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"items": items,
		"cat":   cat,
		"JSON":  string(JSON),
	}, "items-category.html")
}
func ( VS * Server ) showItems ( c * gin . Context ) { id , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } cat := VS . getCategoryByID ( c , id , " " , " " , " " ) items := VS . getAllItemsByCategory ( c , id , " " , " " , " " ) JSON , err := json . Marshal ( items ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : items , " " : cat , " " : string ( JSON ) , } , " " ) }
Shows all the items of the category selected
Shows all the items of the category selected