saveText
This commit is contained in:
parent
0e92b78d33
commit
fd40c9cbed
1 changed files with 7 additions and 0 deletions
|
@ -225,4 +225,11 @@ class Template {
|
||||||
file_put_contents(PUBLIC_DIR . "/" . $filename, $contents);
|
file_put_contents(PUBLIC_DIR . "/" . $filename, $contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function saveText(string $filename, string $contents)
|
||||||
|
{
|
||||||
|
Logger::log("Saving text to " . $filename, Logger::IOWRITE, "Template");
|
||||||
|
|
||||||
|
file_put_contents(PUBLIC_DIR . "/" . $filename, $contents);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue