Magento: getting handles and child blocks

Get all the handles of a controller.
[code language=”php”]
Zend_Debug::dump($this->getLayout()->getUpdate()->getHandles());
[/code]

Get all the child blocks of a block, $this refer to the current block of a template.
[code language=”php”]
Zend_Debug::dump(array_keys($this->getChild()));
[/code]

Search within Codexpedia

Custom Search

Search the entire web

Custom Search