Sometime we require to place the condition for particular layout you can use this two methods
1) It will give the page name like view,list,cart etc.. based on the action
2) It will give the module name like catalog,checkut etc..
so using both we can get our work done
1) It will give the page name like view,list,cart etc.. based on the action
<?php $_action = $this->getRequest()->getActionName(); ?>
2) It will give the module name like catalog,checkut etc..
<?php $_module = $this->getRequest()->getModuleName(); ?>
so using both we can get our work done
No comments:
Post a Comment
Thankyou for your Comments