PhpWord doesn't replace text

前端 未结 7 1808
闹比i
闹比i 2021-02-14 09:34

I have a docx file and I need to replace some text. This is done inside codeigniter framework; here is the code:

$this->load->library(\'word\');       
$te         


        
7条回答
  •  逝去的感伤
    2021-02-14 10:02

    You can use new Template class with new method setValue()

    
            
                {
            
            
            
            
                test5}
            
        
    

    New method can replace it setValue('test5', 'MyValue');

    Download new class: https://github.com/Arisse/PHPWord_CloneRow

提交回复
热议问题