我们正在使用AHT Magento插件来管理幻灯片,并且在选择左侧的静态块菜单项时,我们会得到此错误:
Fatal error: Call to a member function setProductsRelated() on a non-object in /www/app/code/local/AHT/Aslideshow/controllers/Adminhtml/SlideshowController.php on line 270
有问题的行看起来像这样(getLayout 之一):
`公共函数静态块操作(){
$this->_initAction();
$this->loadLayout();
$this->getLayout()->getBlock('aslideshow.slideshow.edit.tab.staticblocks') ->setProductsRelated($this->getRequest()->getPost('staticblocks_slideshow', null));
$this->renderLayout();
} `