I want get all used block names of current pages kindly reply me
child of a block using _sortedChildren variable of this block object
Suppose if want get all child block name of root block then
block from layout and fetch block and get list of child block name:
$block = $this->getLayout()->getBlock('root'); $childBlockNameCollection=$block ->_sortedChildren; echo "<pre>"; print_r($childBlockNameCollection); echo "</pre>";
Do recursive function get all list of child block.