Let’s discuss, how to check if the customer is logged in at any class (controller, model, block, etc) or at the template.
Categories
Let’s discuss, how to check if the customer is logged in at any class (controller, model, block, etc) or at the template.
The short answer is you should not use the ObjectManager directly at all. It is a bad practice, and lets talk why.
Modernizr is needed to determine which of the JS, HTML and CSS capabilities the client browser can handle and which cannot. It is very useful to use its functionality in Magento.