How to get controller name or action in view or layout

To get the controller name in view or layout use the below function

 $controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName()

To get action

 $action =  $controller = Zend_Controller_Front::getInstance()->getRequest()->getActionName()