0

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

1

Try the below code.

$pageIdentifier = Mage::app()->getFrontController()->getAction()->getFullActionName();
Mage::log($pageIdentifier,null,'pageType.log');

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

|improve this answer|||||
0

do you try in block file?

$this->getRequest()->getFullActionName()
|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.