Refactored templates processing
This commit is contained in:
@@ -60,6 +60,15 @@ class Module extends BaseModule
|
||||
return THELIA_MODULE_DIR . $this->getI18nPath();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the absolute path to one of the module's template directories
|
||||
*
|
||||
* @param int $templateSubdirName the name of the, probably one of TemplateDefinition::xxx_SUBDIR constants
|
||||
*/
|
||||
public function getAbsoluteTemplateDirectoryPath($templateSubdirName) {
|
||||
return sprintf("%s%stemplates%s%s", $this->getAbsoluteBaseDir(), DS, DS, $templateSubdirName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate next position relative to module type
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user