Helping ordinary people create extraordinary websites!


replaceBlockfile()

replaceBlockfile() -- Replaces an existing block with new content from a file.

Description

Replaces an existing block with new content from a file.

Parameter

string $block

name of a block to replace

string $filename

template file that contains the block

boolean $keepContent

TRUE if the parsed contents of the block should be kept

Return value

return SIGMA_OK on success, error object on failure

Note

This function can not be called statically.