We are currently using an older version of PHPDocx and have it working (except for charts). We downloaded the newest version (2.7) and tried to create a doc and had some problems. When I checked the variables on the form, the newest version seems not detect the variables properly. Here are the results of the getTemplateVariables for 2.7:
Array
(
[document] => Array
(
[0] => barcode
[1] => date
[2] => employee
[3] =>
[4] =>
[5] => patient_addr1
[6] => ,
[7] =>
[8] => patient_id
[9] => ,
)
)
and here are the results of the old version (same exact form):
Array
(
[document] => Array
(
[0] => barcode
[1] => date
[2] => employee
[3] => patient_primcode
[4] => patient_primid
[5] => patient_dob
[6] => patient_first
[7] => patient_last
[8] => patient_addr1
[9] => patient_city
[10] => patient_state
[11] => patient_zip
[12] => patient_id
[13] => home_use
[14] => doctor_dea
[15] => doctor_df_code
[16] => doctor_npi
[17] => doctor_lname
[18] => doctor_fname
[19] => doctor_fax
[20] => doctor_phone
[21] => fax_to
[22] => call_back
)
)
Are there changes that we need to make to convert to the latest version?