Hi,
I am a little stuck. I have some variables within a Plugin like special paths. At the moment they are within the init subroutine hook and I add information to $CFG like:
$CFG->{products_db} = ...
So in any Perl code after having called init I can use the variables and within any template i can use them as well.
It should be easy to do this with $my_own_name_for_this but I donīt get it.
The problem with the above is that the variables are dynamic and can vary from visitor to visitor but they are stored in Config.pm every time they are used.
Though it works that way it seems not reasonable to do it like that.
Thanks for hints
Regards
n||i||k||o
I am a little stuck. I have some variables within a Plugin like special paths. At the moment they are within the init subroutine hook and I add information to $CFG like:
Code:
$CFG->{date_to_text_long} = ... $CFG->{products_db} = ...
So in any Perl code after having called init I can use the variables and within any template i can use them as well.
It should be easy to do this with $my_own_name_for_this but I donīt get it.
The problem with the above is that the variables are dynamic and can vary from visitor to visitor but they are stored in Config.pm every time they are used.
Though it works that way it seems not reasonable to do it like that.
Thanks for hints
Regards
n||i||k||o