def category(id): cat = Category() brand = Brand() pro = Product() a = pro.getProductsByCategory(id) b = brand.getBrands() c = cat.getCategories() d = cat.getCategoryById(id) return render_template('home/category.html', arr=a, crr=c, brr=b, title=d[1])
def edit(id): cat = Category() i = cat.getCategoryById(id) return render_template('category/edit.html', i=i)
def edit(id): cat = Category() v = cat.getCategoryById(id) print(v) return render_template('/category/edit.html' , i = v )