In Magento 1, using a resource model we are getting collections of data:
$products = Mage::getResourceModel('catalog/product_collection');
$category = Mage::getResourceModel('catalog/category_collection');
$order = Mage::getResourceModel('sales/order_collection');
How can I use it in Magento 2? Is there any special use of it in this version?
Best Answer
You can get product,category and order collection by Proper way,
Now,
Using objectmanager in template file,