Magento - Find which Class is loaded in the current Template

If you've just started working with Magento, you'll find that figuring out which class is loaded in the current template file very difficult. Here's a little snippet that helps you figure it out. Just place the following into any .phtml template files:

<?php
    print_r(get_class_methods(get_class($this))); 
?>

or

<?php
    print_r($this->debug());
?>

or

<?php
    echo Zend_Debug::dump($this);
?>

0 comments for Magento - Find which Class is loaded in the current Template

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.