fix render() method for DFXP

file_put_contents() should be given a filename as first argument