I want to get the current type page by echoing its type .I have tried several methods but none has worked. enter image description here

Screenshot from the Backend Simply I want to check the Agencement value Sorry for not providing essays as none has worked

Thanks in advance

| improve this question | | | | |

Try the below code.

$pageIdentifier = Mage::app()->getFrontController()->getAction()->getFullActionName();

[MAGENTO ROOT]/var/log/pageType.log

| improve this answer | | | | |

do you try in block file?

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.