I have a custom component where I have a category field in a view (backend). That gives me the category id in the front-end.
Now I want to know how I could fetch the category name from this catid. I tried JCategories class but was unsuccessful. When I Googled this question I only get DB Query examples as answers but there must be a better way to get the category name then to do a db query?