i started working in phpdocx.
but now when i am trying to add footer, it shows an error message.
"Fatal error: Call to undefined method CreateDocx::importHeadersAndFooters() in C:\xampp\htdocs\phpdocx_demo\p1.php on line 5"
this is my code
<?php
require_once("C:/xampp/htdocs/phpdocx_demo/phpdocx_free/classes/CreateDocx.inc");
$docx = new CreateDocx();
$docx ->importHeadersAndFooters('C:/xampp/htdocs/phpdocx_demo/templateHeaderAndFooter.docx', 'footer');
// templateHeaderAndFooter.docx file contains one line, which should come as footer
$text ="welcome home";
$docx->addText($text);
$docx->createDocx('C:/xampp/htdocs/phpdocx_demo/hello_world_3');
?>
what to do