20240410#6
This commit is contained in:
1 parent
a576bf0638
commit
763228a883
1 file changed
+2
-2
+2
-2
@@ -21,13 +21,13 @@ class Content implements TemplateInterface {
|
||||
$this->{$resKey} = $resVal;
|
||||
}
|
||||
ContentData::$basePath = dirname(__DIR__, 4);
|
||||
ContentData::$template = ContentData::$basePath.$template;
|
||||
ContentData::$template = ContentData::$basePath.rtrim($template, '/');
|
||||
return $this;
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
public function setSubtemplatePath(string $subtemplatePath = "") : TemplateInterface {
|
||||
ContentData::$subtemplatePath = ContentData::$basePath.$subtemplatePath;
|
||||
ContentData::$subtemplatePath = ContentData::$basePath.rtrim($subtemplatePath, '/');
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user