0

我正在浏览“No frills magento layout”的示例和示例 1.11“全页布局”对我不起作用我得到空白页

看起来fetchview有问题

public function fetchView ( $fileName )
{
// ignores file name , just uses a simple include with template name
$this -> setScriptPath (
Mage :: getModuleDir ('', ' Nofrills_Booklayout ') .
DS .
'design '
);
return parent :: fetchView ($this -> getTemplate ());
}

我正在使用 magento 1.7.0.2 社区版

4

1 回答 1

2

自己得到了解决方案。实际上模板文件中缺少以下方法

public function setScriptPath($dir)
{
    parent::setScriptPath($dir);    //if anything important happens up there in a future version
    $this->_viewDir = Mage::getModuleDir('', 'Nofrills_Booklayout') . DS . 'design';
    return $this;                   //as the original 
}

添加此完整页面布局后,将建立。

于 2013-09-04T09:22:19.973 回答