且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在magento中对特定页面应用条件?

更新时间:2023-02-18 12:34:14

使用以下代码.

Mage::app()->getRequest()->getControllerName();

它将为模块指定控制器名称.输入名称的条件,然后编写代码.它肯定会工作.

It will give controller name to your module. Put consition for this name and write your code. It will work for sure.