lgmortier
Hello,
I am trying to install existing pages (generated by a php code) in a dokuwiki to benefit from the dokuwiki environment. This poses 2 problems, I think to be related to the global variables:
- my code uses the $lang variable to handle the fact that the site is multilingual. $lang is a global variable of dokuwiki. I' afraid I will have no choice but to change the name of this variable throughout my code. No other solution ??
- I often use the 'global' statement in php to pass some variables between the different parts of the code, typically tables of dynamically generated parameters. And it doesn't work, these variables are not seen as global ones. And as I have not seen in the dokuwiki forum, any restriction concerning the use of 'global' in php code supposed to be included in a doku page, I wonder how to solve this problem that would require a lot of recoding if you had to remove all the 'global' statements.
Thanks, LGM