I working to Magento 2.0.2 and i trying to call the table stock_item of the product. When i worked in Magento 1.9 i used this code:
But now the class Mage is not compatible with the new version of Magento. So how i do for call this table in my .pthml file?
Thank you very much for any help.
P.S. On other question, what is the .phtml file where is called the name of the product?