Hi,
I've installed the latest release and trying to get to grips with image captions.
I've added a 'caption' parameter as shown below:
$captionsettings = array('text' => 'test');
$image->addImage(array('src' => $imagesrc,'imageAlign' => 'center','height' => $picvar[0],'width' => $picvar[1],'caption' => $captionsettings));
Though I then receive the error:
Fatal error: Call to a member function saveXML() on a non-object in /var/www/phpdocx_corporate-new2/classes/CreateDocx.inc
There is mention of:
'show_label' (string) show default value Figure
I tried setting a value here, though I guess it provides a default?
Is it possible to get demo snippet of how I should declare a caption?
Thanks