Skip to content

Smarty_Internal_Runtime_WriteFile

Smarty Internal Write File Class

  • Full name: \Smarty_Internal_Runtime_WriteFile

Methods

writeFile

Writes file in a safe way to disk

public writeFile(string $_filepath, string $_contents, \Smarty $smarty): bool

Parameters:

Parameter Type Description
$_filepath string complete filepath
$_contents string file content
$smarty \Smarty smarty instance

Return Value:

true

Throws:



Automatically generated on 2025-03-18