Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
Hi there, the embedHtml() method returns nothing, and that's why your code does not render anything, because $htmlFragment is null. Change these lines:
$htmlFragment = $wf->embedHTML($html) to this $wf->embedHTML($html), and
$data = array( array('name' => 'Example name', 'number' => 12345, 'html' => $htmlFragment) ); to this $data = array( array('name' => 'Example name', 'number' => 12345, 'html' => $wf) );