* templates are stored. We will internally determine the language plus
* "html" for web templates or "emails" for email templates
*/
- private $basePath = '';
+ private $templateBasePath = '';
/**
* Template type
private $codeExtension = '.ctp';
/**
- * Path relative to $basePath and language code for compiled code-templates
+ * Path relative to $templateBasePath and language code for compiled code-templates
*/
- private $compileOutputPath = 'templates/_compiled';
+ private $compileOutputPath = 'templates/_compiled/';
+
+ /**
+ * The path name for all templates
+ */
+ private $genericBasePath = 'templates/';
/**
* The raw (maybe uncompiled) template
/**
* Setter for base path
*
- * @param $basePath The local base path for all templates
+ * @param $templateBasePath The relative base path for all templates
* @return void
*/
- public final function setBasePath ($basePath) {
+ public final function setTemplateBasePath ($templateBasePath) {
// And set it
- $this->basePath = (string) $basePath;
+ $this->templateBasePath = (string) $templateBasePath;
}
/**
* Getter for base path
*
- * @return $basePath The local base path for all templates
+ * @return $templateBasePath The relative base path for all templates
*/
- public final function getBasePath () {
+ public final function getTemplateBasePath () {
// And set it
- return $this->basePath;
+ return $this->templateBasePath;
}
/**
} // END - if
// Construct the FQFN for the template by honoring the current language
- $fqfn = sprintf("%s%s/%s%s/%s/%s%s",
- $this->getConfigInstance()->readConfig('application_path'),
- Registry::getRegistry()->getInstance('application')->getAppShortName(),
- $this->getBasePath(),
+ $fqfn = sprintf("%s%s%s%s/%s/%s%s",
+ $this->getConfigInstance()->readConfig('base_path'),
+ $this->getTemplateBasePath(),
+ $this->genericBasePath,
$this->getLanguageInstance()->getLanguageCode(),
$this->getTemplateType(),
(string) $template,