Hello to all,
After the form is save I like to create/save two different PDF reports on server (something like Invoice and Packing list). To create/save report Im using form php plugin and part of code from email plugin (function pdfAttachment). Code wokrs well except two issues: does not load or include css files and wont display header and footer...but I can do some work around.
Problem is I can't load data and template for second pdf or more precisely how to load new $controller/$formModel and other stuff for other form e.g. form_22. Form_16 is my "main" form and form_22 is a copy of form_16 (different templates and some other little things).
Suggestions are appreciated. THX
After the form is save I like to create/save two different PDF reports on server (something like Invoice and Packing list). To create/save report Im using form php plugin and part of code from email plugin (function pdfAttachment). Code wokrs well except two issues: does not load or include css files and wont display header and footer...but I can do some work around.
Problem is I can't load data and template for second pdf or more precisely how to load new $controller/$formModel and other stuff for other form e.g. form_22. Form_16 is my "main" form and form_22 is a copy of form_16 (different templates and some other little things).
Suggestions are appreciated. THX