magento判断是否是ajax
magento 判断是否是ajax加载的页面可以如下写入代码:
1 2 3 4 5 | if($this->getRequest()->isXmlHttpRequest()) { $this->loadLayout(); $this->getResponse()->setBody($this->getLayout()->createBlock('post/adminhtml_ukorderitem_grid')->toHtml()); return $this; } |
Magento (麦进斗) 是一套专业开源的电子商务系统…