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);
?>
Post new comment