How to get the title of page in magento?

To get the title of page you have to put this code in your phtml file and this phtml file was called by the page where you want to showing it.

 

<?php echo $this->getLayout()->getBlock(‘my_block’)->getTitle();?>

Post A Comment

Your email address will not be published. Required fields are marked *