Hello! I need some advice on Best Practice using functions.php.
Here is the issue:
We need to adapt the PDF invoice module with additional information.
As the module itself is already pretty complex and the testing not easy (due to generating a PDF everytime to check output), the idea was to create the output in functions.php because this could be then used in the templates as well.
Now, here’s the catch:
[ol]
[li]Can modules access functions definde in functions.php?
[/li][li]How do I output functions.php data in the templates? All solutions I found in the German and international forums* seemed to be for versions prior to 4.5.
[/li][/ol]
Thanks for any help or documentation!
*these pages seemed to go in the right direction:
http://forum.oxid-esales.com/showthread.php?t=16198
[ul]
[li]I didn’t get, how to extend the oViewConf class, also – does this work outside of templates?
[/li][/ul]
http://forum.oxid-esales.com/showthread.php?t=7461#post43730
[ul]
[li]this one has an example of functions.php template interaction – using the first example on our site simply broke output without any error codes
[/li][/ul]