Created
June 12, 2011 19:36
-
-
Save astorm/1021916 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#File: app/code/core/Mage/Core/Controller/Varien/Router/Standard.php | |
/** | |
* Generating and validating class file name, | |
* class and if evrything ok do include if needed and return of class name | |
* | |
* @return mixed | |
*/ | |
protected function _validateControllerClassName($realModule, $controller) | |
{ | |
$controllerFileName = $this->getControllerFileName($realModule, $controller); | |
if (!$this->validateControllerFileName($controllerFileName)) { | |
var_dump($controllerFileName); | |
return false; | |
} | |
$controllerClassName = $this->getControllerClassName($realModule, $controller); | |
if (!$controllerClassName) { | |
var_dump($controllerClassName); | |
return false; | |
} | |
// include controller file if needed | |
if (!$this->_includeControllerClass($controllerFileName, $controllerClassName)) { | |
var_dump($controllerFileName . '----' . $controllerClassName); | |
return false; | |
} | |
return $controllerClassName; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment