Beispiel #1
0
 /**
  * @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')));
 }
 public function fetchView($fileName)
 {
     $module_dir = Mage::getModuleDir('', 'Tamarashorin_Commercebug');
     $this->setScriptPath($module_dir . '/static');
     return parent::fetchView($this->getTemplate());
 }
Beispiel #3
0
 public function fetchView($fileName)
 {
     return parent::fetchView($fileName);
 }
 /**
  * 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) : '';
 }
Beispiel #5
0
 /**
  * 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());
 }
Beispiel #6
0
 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());
 }
Beispiel #7
0
 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());
 }
 public function fetchView($filename)
 {
     $this->setScriptPath(Mage::getModelDir('', 'Hatrangcorp_Youtubewidget') . DS . '');
     return parent::fetchView($this->getTemplate());
 }