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