djpate / docxgen

A class that enables you to generate a docx based on a template
67 stars 27 forks source link

Problems in nested Blocks #2

Open MarcoSillano opened 13 years ago

MarcoSillano commented 13 years ago

Good tool, i am planning use it! But I have a problem: if i modify "example.php" found in djpate-phpdocx-5006fb8 like this: .... omissis... $phpdocx->assignNestedBlock("pets",array(array("#PETNAME#"=>"Rox"),array("#PETNAME#"=>"Bob")),array("members"=>2)); // would create a block pets for jane doe with 2 pets: rox and bob ... omissis.... This don't work as expected, car it produces: ---------------- omissis Rox Favorite toys

A bug or I mistake? Greetings.

P4Thi0ut commented 8 years ago

Same issue here, I think it's a bug. I know it's an old question but, has anyone found a fix/workaround ?