Skip to content

Instantly share code, notes, and snippets.

@fbrnc
Created June 16, 2015 20:44
Show Gist options
  • Select an option

  • Save fbrnc/ce477c92d027a8263271 to your computer and use it in GitHub Desktop.

Select an option

Save fbrnc/ce477c92d027a8263271 to your computer and use it in GitHub Desktop.
Debug Helper
<?php
class Mage_Core_Block_Template:
public function fetchView($fileName):
if (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks()) {
if (empty($includeFilePath)) {
Mage::log("Resulting in empty includeFilePath: $fileName");
} else {
include $includeFilePath;
}
} else {
Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, null, true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment