private function getControllerDir()
{
$controllerDir = PIMCORE_WEBSITE_PATH . DIRECTORY_SEPARATOR . "controllers" . DIRECTORY_SEPARATOR;
if ($module = $this->getParam("moduleName")) {
if ($module != "" && $module != "website") {
// => not the default
$front = $this->getFrontController();
$modules = $front->getControllerDirectory();
if (array_key_exists($module, $modules)) {
$controllerDir = $modules[$module] . DIRECTORY_SEPARATOR;
}
}
}
return $controllerDir;
}