public function write([mixed
$content = NULL,
[string
$name = '']] )
Parameters
$content
—
mixed
Either a content reader, file resource from fopen, or a string representing a file to the contents of. If the content property is null, it is expected that the 'source' var will be used as the content instead
$name
—
string
The name that is used to refer to this piece of content, if needed. The name can contain directory separators if desired, and if a file exists with the same name, it will be overwritten.