本文整理汇总了PHP中Mage_Core_Block_Template::fetchView方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Block_Template::fetchView方法的具体用法?PHP Mage_Core_Block_Template::fetchView怎么用?PHP Mage_Core_Block_Template::fetchView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Block_Template
的用法示例。
在下文中一共展示了Mage_Core_Block_Template::fetchView方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testFetchView
/**
* @covers Mage_Core_Block_Template::fetchView
* @covers Mage_Core_Block_Abstract::setLayout
* @covers Mage_Core_Block_Abstract::getLayout
* @see testAssign
*/
public function testFetchView()
{
$layout = new Mage_Core_Model_Layout();
$layout->setDirectOutput(true);
$this->_block->setLayout($layout);
$this->assertTrue($this->_block->getDirectOutput());
$this->assertEmpty($this->_block->fetchView(uniqid('invalid_filename.phtml')));
}
示例2: fetchView
public function fetchView($fileName)
{
$module_dir = Mage::getModuleDir('', 'Tamarashorin_Commercebug');
$this->setScriptPath($module_dir . '/static');
return parent::fetchView($this->getTemplate());
}
示例3: fetchView
public function fetchView($fileName)
{
return parent::fetchView($fileName);
}
示例4: fetchView
/**
* Legacy fix that stops the HTML output from displaying
*
* @param string $fileName
* @return string
*/
public function fetchView($fileName)
{
return is_file($fileName) ? parent::fetchView($fileName) : '';
}
示例5: fetchView
/**
* Retrieve block view from file (template)
*
* @param string $fileName
* @return string
*/
public function fetchView($fileName)
{
$module_dir = Mage::getModuleDir('', 'Ash_Devbar');
$this->setScriptPath($module_dir . '/Template');
return parent::fetchView($this->getTemplate());
}
示例6: fetchView
public function fetchView($fileName)
{
//ignores file name, just uses a simple include with template name
$this->setScriptPath(Mage::getConfig()->getModuleDir('', 'Alanstormdotcom_Systemsearch') . '/phtml');
return parent::fetchView($this->getTemplate());
}
示例7: 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());
}
示例8: fetchView
public function fetchView($filename)
{
$this->setScriptPath(Mage::getModelDir('', 'Hatrangcorp_Youtubewidget') . DS . '');
return parent::fetchView($this->getTemplate());
}