Created
February 13, 2018 10:58
-
-
Save adnan360/b838508398993c0ae6c2d02cf5ba3319 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once( dirname( MPLUS_CE ) . '/vendor/PHPWord/Template.php' ); | |
class Mplus_PHPWord_Template extends PHPWord_Template | |
{ | |
private $page_xml; | |
public function __construct( $strFilename ){ | |
parent::__construct( $strFilename ); | |
$this->page_xml = file_get_contents(dirname( MPLUS_CE ) . '/assets/page.txt'); | |
} | |
public function add_page(){ | |
$this->_documentXML = str_replace("<!--page-->", $this->page_xml, $this->_documentXML); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment