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
1 |
<?php print_r(get_class_methods(get_class($this))); ?> |
or
PHP
1 |
<?php print_r($this->debug()); ?> |
or
PHP
1 |
<?php echo Zend_Debug::dump($this); ?> |