Easy way to find block class name in phtml

find block class in magento
The most easy way to find out which class the phtml file belongs to by running the below small piece of code -:

echo get_class($this)

This small piece of code is very effective especially when you are new to Magento’s development world.

Hope this article helped you in some way. Please leave us your comment and let us know what do you think? Thanks.

3 thoughts on “Easy way to find block class name in phtml

  1. i truly admire the work you are doing. i follow your articles and love what you have to say. you’ve already made a difference.

Leave a Reply

Your email address will not be published. Required fields are marked *