I need to get category list with sub categories. I've found multiple solutions that I may need to create a module and get category list inside module's template file. But I need to do this without creating a module. How can I do it?
I tried creating a class and I used those included magento classes in the answers I mentioned with
use inside my
phtml file, before declaring my class. but it didn't work.
Is it possible to get every category with its sub categories (and if sub category has its own sub category, I need to get it too ) without creating a module? if so, how can I do it? (I need to do this inside single phtml file)